mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Restrict toolbar width (occupying all the free area otherwise)
This commit is contained in:
+2
@@ -148,6 +148,8 @@ public abstract class AbstractSchemesPanel<T extends Scheme, InfoComponent exten
|
||||
toolbar.setReservePlaceAutoPopupIcon(false);
|
||||
toolbar.setLayoutPolicy(ActionToolbar.NOWRAP_LAYOUT_POLICY);
|
||||
JComponent toolbarComponent = toolbar.getComponent();
|
||||
Dimension maxSize = toolbarComponent.getMaximumSize();
|
||||
toolbarComponent.setMaximumSize(JBUI.size(22, maxSize.height));
|
||||
toolbarComponent.setBorder(JBUI.Borders.empty(3));
|
||||
return toolbarComponent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user