-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0, 16
-
b26
-
x86
-
windows_xp
Name: jk109818 Date: 09/03/2003
FULL PRODUCT VERSION :
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode)
FULL OS VERSION :
Microsoft Windows [Version 5.2.3790]
A DESCRIPTION OF THE PROBLEM :
I'm working on a custom look and feel supporting Windows decoration. I had some problems with the minimum size calculation of the windows as the content pane minimum size was making the window bigger and bigger.
but by looking at the MetalRootLayout code, I found the minimumLayoutSize method uses the width of the title pane in the height calculation:
return new Dimension(Math.max(Math.max(cpWidth, mbWidth), tpWidth) + i.left + i.right,
cpHeight + mbHeight + tpWidth + i.top + i.bottom);
where it should use tpHeight instead.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
May not really be visible with Metal, but the bug is there.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expected is to use tpHeight instead.
REPRODUCIBILITY :
This bug can be reproduced always.
(Incident Review ID: 200498)
======================================================================
FULL PRODUCT VERSION :
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode)
FULL OS VERSION :
Microsoft Windows [Version 5.2.3790]
A DESCRIPTION OF THE PROBLEM :
I'm working on a custom look and feel supporting Windows decoration. I had some problems with the minimum size calculation of the windows as the content pane minimum size was making the window bigger and bigger.
but by looking at the MetalRootLayout code, I found the minimumLayoutSize method uses the width of the title pane in the height calculation:
return new Dimension(Math.max(Math.max(cpWidth, mbWidth), tpWidth) + i.left + i.right,
cpHeight + mbHeight + tpWidth + i.top + i.bottom);
where it should use tpHeight instead.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
May not really be visible with Metal, but the bug is there.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expected is to use tpHeight instead.
REPRODUCIBILITY :
This bug can be reproduced always.
(Incident Review ID: 200498)
======================================================================