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 257520 - Incorrect TabbedAdapter minimum height calculation
Summary: Incorrect TabbedAdapter minimum height calculation
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.0.1
Hardware: PC All
: P3 normal with 1 vote (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-11 15:54 UTC by aldobrucale
Modified: 2016-01-11 15:54 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 aldobrucale 2016-01-11 15:54:05 UTC
When minimum size is set for a TopComponent in editor position, the horizontal split pane doesn't actually allow to set the expected minimum height.

This problem is due to the wrong calculation of the minimum height in TabbedAdapter: it uses a BorderLayout with a JPanel containing the TopComponent in CENTER position and a TabDisplayer in NORTH position. The minimum size calculation for the TabDisplayer is delegated to BasicScrollingTabDisplayerUI, which returns the minimum of the selected component as minimum size, so the minimum height of the TopComponent is counted twice, one for the NORTH and one for the CENTER component.