mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-147693 Quick Definition popup grows on each update
This commit is contained in:
@@ -143,6 +143,11 @@ final class ImageEditorUI extends JPanel implements DataProvider, CopyProvider,
|
||||
ActionToolbar actionToolbar = actionManager.createActionToolbar(
|
||||
ImageEditorActions.ACTION_PLACE, actionGroup, true
|
||||
);
|
||||
|
||||
// Make sure toolbar is 'ready' before it's added to component hierarchy
|
||||
// to prevent ActionToolbarImpl.updateActionsImpl(boolean, boolean) from increasing popup size unnecessarily
|
||||
actionToolbar.updateActionsImmediately();
|
||||
|
||||
actionToolbar.setTargetComponent(this);
|
||||
|
||||
JComponent toolbarPanel = actionToolbar.getComponent();
|
||||
|
||||
Reference in New Issue
Block a user