diff options
author | Henri Sara <hesara@vaadin.com> | 2013-10-09 12:31:00 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-10-14 12:31:04 +0000 |
commit | 14494257917b270b33ecdc521c24b49c5c36c72c (patch) | |
tree | 8ef56b10634ea2a7952d0fa6fb32469a162df509 /client | |
parent | 2aa2fdcb9fd035789b2cda9a9e6112605d719294 (diff) | |
download | vaadin-framework-14494257917b270b33ecdc521c24b49c5c36c72c.tar.gz vaadin-framework-14494257917b270b33ecdc521c24b49c5c36c72c.zip |
Also hide shim iframe of VOverlay on setVisible(false) (#12731)
Change-Id: I48258a24bb14bbe79c1e11c9bda4a18b120b2a42
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/VOverlay.java | 8 |
1 files changed, 8 insertions, 0 deletions
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<PopupPanel> { 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<PopupPanel> { shadow.getStyle().setProperty("visibility", visible ? "visible" : "hidden"); } + if (isShimElementEnabled()) { + shimElement.getStyle().setProperty("visibility", + visible ? "visible" : "hidden"); + } } @Override |