diff options
author | Artur <artur@vaadin.com> | 2018-05-02 14:42:52 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-05-02 14:42:52 +0300 |
commit | e65e9c5821cdab4d3042a0df8e1fd06c7f36de9a (patch) | |
tree | 7d4a47d67155879152f0e7527709465281279596 /client/src/main | |
parent | c4d621c7772347f1b90c94d566c894b7434cb7f1 (diff) | |
download | vaadin-framework-e65e9c5821cdab4d3042a0df8e1fd06c7f36de9a.tar.gz vaadin-framework-e65e9c5821cdab4d3042a0df8e1fd06c7f36de9a.zip |
Fix removing resize and drag curtains when window is closed (#10515)
Fixes #10514
Diffstat (limited to 'client/src/main')
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/VWindow.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VWindow.java b/client/src/main/java/com/vaadin/client/ui/VWindow.java index 0fffd2fed6..0e78fc02b3 100644 --- a/client/src/main/java/com/vaadin/client/ui/VWindow.java +++ b/client/src/main/java/com/vaadin/client/ui/VWindow.java @@ -258,6 +258,12 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner, .focusStoredElement(); removeTabBlockHandlers(); + // If you click while the window is being closed, + // a new dragging curtain might be added and will + // remain after detach. Theoretically a resize curtain can also remain + // if you manage to click on the resize element + hideDraggingCurtain(); + hideResizingCurtain(); } private void addTabBlockHandlers() { |