6689468: test/closed/java/awt/Component/VisibleHwInLwContTest/VisibleHwInLwContTest.html fails
The addNotify() checks whether the component is actually hidden, and hides the peer appropriately if needed Reviewed-by: art, dcherepanov
This commit is contained in:
parent
8b2b083b28
commit
197de32fb3
@ -6665,6 +6665,9 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
Container parent = this.parent;
|
||||
if (parent != null && parent.peer instanceof LightweightPeer) {
|
||||
relocateComponent();
|
||||
if (!isRecursivelyVisible()) {
|
||||
peer.setVisible(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
invalidate();
|
||||
|
Loading…
Reference in New Issue
Block a user