From 14494257917b270b33ecdc521c24b49c5c36c72c Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Wed, 9 Oct 2013 12:31:00 +0300 Subject: Also hide shim iframe of VOverlay on setVisible(false) (#12731) Change-Id: I48258a24bb14bbe79c1e11c9bda4a18b120b2a42 --- client/src/com/vaadin/client/ui/VOverlay.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/com/vaadin/client/ui/VOverlay.java b/client/src/com/vaadin/client/ui/VOverlay.java index 0e031e3d0d..2f5df6d4f3 100644 --- a/client/src/com/vaadin/client/ui/VOverlay.java +++ b/client/src/com/vaadin/client/ui/VOverlay.java @@ -229,6 +229,10 @@ public class VOverlay extends PopupPanel implements CloseHandler { return shadow != null; } + protected boolean isShimElementEnabled() { + return shimElement != null; + } + private void removeShimElement() { if (shimElement != null) { shimElement.removeFromParent(); @@ -382,6 +386,10 @@ public class VOverlay extends PopupPanel implements CloseHandler { shadow.getStyle().setProperty("visibility", visible ? "visible" : "hidden"); } + if (isShimElementEnabled()) { + shimElement.getStyle().setProperty("visibility", + visible ? "visible" : "hidden"); + } } @Override -- cgit v1.2.3