George-Devel opened a new issue #3710:
URL: https://github.com/apache/netbeans/issues/3710


   ### Apache NetBeans version
   
   Apache NetBeans 13
   
   ### What happened
   
    `public Dimension getMinimumSize(JComponent c)`
   
   in
   
   `org.netbeans.swing.tabcontrol.plaf.BasicScrollingTabDisplayerUI`
   
   returns the minimum height of the selected content instead of the height of 
tabs (buttons in the north of the internally used border layout). This 
basically doubles the total minimum height. The height of the content is 
counted twice: once as center component and once as north component.
   
   I created a test application to demonstrate the problem. 
   
[MinSizeTest.zip](https://github.com/apache/netbeans/files/8190728/MinSizeTest.zip)
   
   
   
   ### How to reproduce
   
   Open the attached test application (or any Netbeans Application and set the 
Minimum Size in a window.) 
   
   
[MinSizeTest.zip](https://github.com/apache/netbeans/files/8190728/MinSizeTest.zip)
   
   The window must be displayed as editor. (Otherwise the 
BasicScrollingTabDisplayerUI is not used. The Look and Feel must also use this 
class, but this is the case for most Look and Feels)
   
   Open the output window und check the effective minimum size of the editor 
window by moving the divider upwards. (The green box is the minimum size, set 
in the window):
   
   <img width="335" alt="image" 
src="https://user-images.githubusercontent.com/101003414/156885407-24ff7c35-6c5d-4e9d-9943-9c16b97dea33.png";>
   
   
   ### Did this work correctly in an earlier version?
   
   No
   
   ### Operating System
   
   Windows 10
   
   ### JDK
   
   11
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
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