diff options
Diffstat (limited to 'java')
-rw-r--r-- | java/awt/ScrollPane.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/java/awt/ScrollPane.java b/java/awt/ScrollPane.java index 6d7994dab..35a81300d 100644 --- a/java/awt/ScrollPane.java +++ b/java/awt/ScrollPane.java @@ -414,7 +414,7 @@ addNotify() super.addNotify(); Component[] list = getComponents(); - if (list != null && list.length > 0 && ! (list[0] instanceof Panel)) + if (list != null && list.length > 0 && list[0].isLightweight()) { Panel panel = new Panel(); panel.setLayout(new BorderLayout()); @@ -454,8 +454,6 @@ removeNotify() remove(list[0]); super.addImpl(component, constraints, index); - - doLayout(); } /*************************************************************************/ |