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 - BasicScrollingTabDisplayerUI calculates incorrect minimum size
Summary: BasicScrollingTabDisplayerUI calculates incorrect minimum size
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.1
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-02 08:57 UTC by sirmax
Modified: 2015-12-02 08:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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()