8130892: Test javax/swing/plaf/basic/BasicTextUI/8001470/bug8001470.java fails in Solaris Sparcv9

Reviewed-by: alexsch, serb
This commit is contained in:
Semyon Sadetsky 2015-08-04 12:58:50 +03:00
parent 861ba88c86
commit 21330b8cf8

View File

@ -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);