]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed missing cursor problem in win and linux FF2
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 19 May 2008 12:05:45 +0000 (12:05 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 19 May 2008 12:05:45 +0000 (12:05 +0000)
svn changeset:4550/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IWindow.java

index 17f19af5e2619877ebb729a2f7d2b472369fd8ac..6bd107371fc27e9175de227b4ce788621c005942 100644 (file)
@@ -355,6 +355,17 @@ public class IWindow extends PopupPanel implements Paintable, ScrollListener {
             showModalityCurtain();
         }
         super.show();
+        if (Util.isFF2()) {
+            // "missing cursor" browser bug workaround for FF2 in Windows and
+            // Linux
+            DeferredCommand.addCommand(new Command() {
+                public void execute() {
+                    String overflow = DOM.getStyleAttribute(getElement(),
+                            "overflow");
+                    DOM.setStyleAttribute(getElement(), "overflow", "auto");
+                }
+            });
+        }
     }
 
     public void hide() {
@@ -392,7 +403,6 @@ public class IWindow extends PopupPanel implements Paintable, ScrollListener {
     }
 
     private void showModalityCurtain() {
-        DOM.appendChild(RootPanel.getBodyElement(), modalityCurtain);
         if (Util.isFF2()) {
             DOM.setStyleAttribute(modalityCurtain, "height", DOM
                     .getElementPropertyInt(RootPanel.getBodyElement(),
@@ -400,6 +410,7 @@ public class IWindow extends PopupPanel implements Paintable, ScrollListener {
                     + "px");
             DOM.setStyleAttribute(modalityCurtain, "position", "absolute");
         }
+        DOM.appendChild(RootPanel.getBodyElement(), modalityCurtain);
     }
 
     private void hideModalityCurtain() {