]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed window resize problem
authorArtur Signell <artur.signell@itmill.com>
Wed, 1 Oct 2008 11:26:21 +0000 (11:26 +0000)
committerArtur Signell <artur.signell@itmill.com>
Wed, 1 Oct 2008 11:26:21 +0000 (11:26 +0000)
svn changeset:5575/svn branch:trunk

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

index 4d77a5d38d457f057129b4ad8b9de52258c505aa..0e8874b4b73f631daae1a70520aacdf2446efb16 100644 (file)
@@ -328,6 +328,8 @@ public class IView extends SimplePanel implements Container,
                                     "window h" + IView.this.height);
                         }
                         if (changed) {
+                            updateContentAreaSize();
+
                             ApplicationConnection
                                     .getConsole()
                                     .log(
@@ -357,11 +359,13 @@ public class IView extends SimplePanel implements Container,
             DOM.setStyleAttribute(getElement(), "overflow", "hidden");
             ApplicationConnection.getConsole().log(
                     "Running layout functions due window resize");
+
+            updateContentAreaSize();
             connection.runDescendentsLayout(this);
+
             DOM.setStyleAttribute(getElement(), "overflow", overflow);
-        }
 
-        updateContentAreaSize();
+        }
 
     }