[ 
https://issues.apache.org/jira/browse/NETBEANS-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16613821#comment-16613821
 ] 

Austin Stephens commented on NETBEANS-1246:
-------------------------------------------

We should probably have it override `getMaximumSize` as well

> 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
>            Priority: Major
>
> 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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to