This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256915

Summary: BasicScrollingTabDisplayerUI calculates incorrect minimum size
Product: platform Reporter: sirmax
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description sirmax 2015-12-02 08:57:36 UTC
BasicScrollingTabDisplayerUI.getMinimumSize returns the minimum size of a component associated with the tab instead of the tab's size. As a result the height of a tabbed container becomes `contents.height * 2` instead of `contents.height + tab.height`.

I suppose the fix should replace
    comp.getMinimumSize()
with
    getTabRect(index, scratch).getSize()