mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +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: d9c2e2f34c2b84180df51869e2bb795419204fd6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
19851d9cda
commit
23f25ec112
@@ -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