summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-05-19 09:12:36 -0700
committerShawn O. Pearce <sop@google.com>2009-05-19 09:12:36 -0700
commit42b27be34f41834f588c37d7e1afa18ecb7022a9 (patch)
tree5c62d565ad357e79120de1c329f69ab1542ad91d
parent5bad647ffcf79e07da581ee4dba861db31d851f2 (diff)
downloadgwtexpui-42b27be34f41834f588c37d7e1afa18ecb7022a9.tar.gz
Fix assertion in hosted mode for GlobalKey.dialog
We must test isShowing here, not isVisible, as the popup may be added to the DOM tree, slated for display, but not yet visible as the code is still trying to compute the correct size and location before the popup is made visible to the user. Signed-off-by: Shawn O. Pearce <sop@google.com>
-rw-r--r--src/main/java/com/google/gwtexpui/globalkey/client/GlobalKey.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/gwtexpui/globalkey/client/GlobalKey.java b/src/main/java/com/google/gwtexpui/globalkey/client/GlobalKey.java
index b99e63f..16c2970 100644
--- a/src/main/java/com/google/gwtexpui/globalkey/client/GlobalKey.java
+++ b/src/main/java/com/google/gwtexpui/globalkey/client/GlobalKey.java
@@ -83,7 +83,7 @@ public class GlobalKey {
public static void dialog(final PopupPanel panel) {
initEvents();
initDialog();
- assert panel.isVisible();
+ assert panel.isShowing();
assert active == global;
active = new State(panel);
active.add(new KeyCommand(0, KeyCodes.KEY_ESCAPE, Util.C