提交 968d9a99 编写于 作者: A anthony

6689468: test/closed/java/awt/Component/VisibleHwInLwContTest/VisibleHwInLwContTest.html fails

Summary: The addNotify() checks whether the component is actually hidden, and hides the peer appropriately if needed
Reviewed-by: art, dcherepanov
上级 f7623716
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册