8130892: Test javax/swing/plaf/basic/BasicTextUI/8001470/bug8001470.java fails in Solaris Sparcv9
Reviewed-by: alexsch, serb
This commit is contained in:
parent
861ba88c86
commit
21330b8cf8
@ -940,7 +940,7 @@ public abstract class BasicTextUI extends TextUI implements ViewFactory {
|
||||
rootView.setSize(d.width - i.left - i.right -
|
||||
caretMargin, d.height - i.top - i.bottom);
|
||||
}
|
||||
else if (d.width == 0 || d.height == 0) {
|
||||
else if (d.width <= 0 || d.height <= 0) {
|
||||
// Probably haven't been layed out yet, force some sort of
|
||||
// initial sizing.
|
||||
rootView.setSize(Integer.MAX_VALUE, Integer.MAX_VALUE);
|
||||
|
Loading…
Reference in New Issue
Block a user