mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't hide schemes toolbar icon when settings window is sized down
This commit is contained in:
+2
@@ -133,6 +133,8 @@ public abstract class AbstractSchemesPanel<T extends Scheme, InfoComponent exten
|
||||
private JComponent createToolbar() {
|
||||
DefaultActionGroup toolbarActionGroup = new DefaultActionGroup();
|
||||
ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.NAVIGATION_BAR_TOOLBAR, toolbarActionGroup, true);
|
||||
toolbar.setReservePlaceAutoPopupIcon(false);
|
||||
toolbar.setLayoutPolicy(ActionToolbar.NOWRAP_LAYOUT_POLICY);
|
||||
JComponent toolbarComponent = toolbar.getComponent();
|
||||
toolbarActionGroup.add(new ShowSchemesActionsListAction(myActions.getActions(), toolbarComponent));
|
||||
toolbarComponent.setMaximumSize(new Dimension(toolbarComponent.getPreferredSize().width, Short.MAX_VALUE));
|
||||
|
||||
Reference in New Issue
Block a user