Austin Stephens created NETBEANS-1246:
-----------------------------------------

             Summary: ToolbarWithOverflow does not override getMinimumSize()
                 Key: NETBEANS-1246
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1246
             Project: NetBeans
          Issue Type: Bug
          Components: platform - Window System
    Affects Versions: 9.0, Next
            Reporter: Austin Stephens


The default implementation for minimumSize (last I checked) for 
`ToolbarWithOverflow` effectively returns the current size of the toolbar. As a 
result, any custom layout manager doesn't know how much it can squeeze it.

Details:

The default call to `getMinimumSize` calls `layoutMgr.minimumLayoutSize`. The 
layout for the toolbar is a `BoxLayout`. `BoxLayout.minimumLayoutSize` returns 
the combined width of the current buttons, which is effectively the current 
size of the toolbar, regardless of whether or not any icons have overflowed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to