]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #1641 and some other random layout issues on FF and Safari
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 15 May 2008 11:31:30 +0000 (11:31 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 15 May 2008 11:31:30 +0000 (11:31 +0000)
svn changeset:4505/svn branch:trunk

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

index 128c9160cfab2385c76f20945d67d44d70c00e2e..326a0b43288dd6f443f342881ae5da2b75c381bd 100644 (file)
@@ -192,9 +192,10 @@ public class IView extends SimplePanel implements Paintable,
             w.hide();
         }
 
+        onWindowResized(Window.getClientWidth(), Window.getClientHeight());
         // IE somehow fails some layout on first run, force layout
         // functions
-        Util.runDescendentsLayout(this);
+        // Util.runDescendentsLayout(this);
 
     }
 
@@ -243,9 +244,15 @@ public class IView extends SimplePanel implements Paintable,
             }
             resizeTimer.schedule(200);
         } else {
+            // temporary set overflow hidden, not to let scrollbars disturb
+            // layout functions
+            final String overflow = DOM.getStyleAttribute(getElement(),
+                    "overflow");
+            DOM.setStyleAttribute(getElement(), "overflow", "hidden");
             ApplicationConnection.getConsole().log(
                     "Running layout functions due window resize");
             Util.runDescendentsLayout(this);
+            DOM.setStyleAttribute(getElement(), "overflow", overflow);
         }
     }