diff --git a/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java b/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java index e65c6dd0cfe5..fe78289a0963 100644 --- a/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java @@ -983,6 +983,7 @@ public class ActionToolbarImpl extends JPanel implements ActionToolbar { } }; popupToolbar.setLayoutPolicy(NOWRAP_LAYOUT_POLICY); + popupToolbar.updateActionsImmediately(); Point location; if (myOrientation == SwingConstants.HORIZONTAL) { @@ -996,6 +997,7 @@ public class ActionToolbarImpl extends JPanel implements ActionToolbar { final ComponentPopupBuilder builder = JBPopupFactory.getInstance().createComponentPopupBuilder(popupToolbar, null); builder.setResizable(false) + .setMovable(true) // fit the screen automatically .setRequestFocus(false) .setTitle(null) .setCancelOnClickOutside(true)