On Wed, 30 Sep 2020 12:11:38 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

> Please review a fix for an issue where minimumLayoutSize and 
> preferredlayoutSize of MetalRootLayout class wrongly uses
> the width of the title pane in the height calculation: Proposed fix is to 
> rectify the anomaly and use tpHeight for
> height calculation.
> All closed, open jtreg and JCK tests and SwingSet2 Metal L&F are unaffected 
> by this change.

src/java.desktop/share/classes/javax/swing/plaf/metal/MetalRootPaneUI.java line 
539:

> 537:
> 538:             return new Dimension(Math.max(Math.max(cpWidth, mbWidth), 
> tpWidth) + i.left + i.right,
> 539:                                  cpHeight + mbHeight + tpHeight + i.top 
> + i.bottom);

Is it possible to check this change by some testcase?

-------------

PR: https://git.openjdk.java.net/jdk/pull/433

Reply via email to