mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[PyCharm] Jupyter (fix): Fixed floating toolbar behavior when toolbar actions changed. #PY-80911 Fixed
- Also, toolbars will finally look complete in remote dev - Removed multiple calls to Editor revalidate/repaint (cherry picked from commit af2a30af1b3721ac3b756c2c8d79bb7a1dd079f1) GitOrigin-RevId: 00ddb21d4e561ab781e7a088de489b7499e140d3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ee530b7f0e
commit
d79aa1626f
@@ -9,7 +9,6 @@ import com.intellij.openapi.actionSystem.ActionGroup
|
||||
import com.intellij.openapi.actionSystem.ActionManager
|
||||
import com.intellij.openapi.editor.impl.EditorImpl
|
||||
import com.intellij.util.ui.JBEmptyBorder
|
||||
import org.intellij.lang.annotations.Language
|
||||
import java.awt.FlowLayout
|
||||
import java.awt.Graphics
|
||||
import java.awt.Graphics2D
|
||||
@@ -30,7 +29,7 @@ class NotebookBelowLastCellPanel(
|
||||
if (editor.isOrdinaryNotebookEditor()) {
|
||||
isOpaque = false
|
||||
border = HighlightableTopBorder(editor.notebookAppearance.cellBorderHeight)
|
||||
val actionGroup = ActionManager.getInstance().getAction(ACTION_GROUP_ID) as ActionGroup
|
||||
val actionGroup = ActionManager.getInstance().getAction("Jupyter.CreateNewCellsPanel") as ActionGroup
|
||||
add(JupyterAddNewCellToolbar(actionGroup, toolbarTargetComponent = this))
|
||||
}
|
||||
}
|
||||
@@ -56,9 +55,4 @@ class NotebookBelowLastCellPanel(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
@Language("devkit-action-id")
|
||||
private const val ACTION_GROUP_ID = "Jupyter.CreateNewCellsPanel"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user