mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
hide empty toolbars
This commit is contained in:
+1
-1
@@ -643,7 +643,7 @@ public class ActionToolbarImpl extends JPanel implements ActionToolbar {
|
||||
public Dimension getPreferredSize() {
|
||||
final ArrayList<Rectangle> bounds = new ArrayList<Rectangle>();
|
||||
calculateBounds(new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE), bounds);
|
||||
|
||||
if (bounds.isEmpty()) return new Dimension(0, 0);
|
||||
int xLeft = Integer.MAX_VALUE;
|
||||
int yTop = Integer.MAX_VALUE;
|
||||
int xRight = Integer.MIN_VALUE;
|
||||
|
||||
Reference in New Issue
Block a user