]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed #4206 - "Setting scroll position doesn't work with Webkit browsers" for Panel
authorArtur Signell <artur.signell@itmill.com>
Tue, 23 Feb 2010 13:07:01 +0000 (13:07 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 23 Feb 2010 13:07:01 +0000 (13:07 +0000)
svn changeset:11499/svn branch:6.3

src/com/vaadin/terminal/gwt/client/ui/VPanel.java

index 85ad8399c2dc3541c4b9f99686f79ca40376011f..d41a73965552f49da115f9074ffc830facc5bdc8 100644 (file)
@@ -189,7 +189,6 @@ public class VPanel extends SimplePanel implements Container {
         }
         layout.updateFromUIDL(layoutUidl, client);
 
-        runHacks(false);
         // We may have actions attached to this panel
         if (uidl.getChildCount() > 1) {
             final int cnt = uidl.getChildCount();
@@ -224,6 +223,10 @@ public class VPanel extends SimplePanel implements Container {
             scrollLeft = contentNode.getScrollLeft();
         }
 
+        // Must be run after scrollTop is set as Webkit overflow fix re-sets the
+        // scrollTop
+        runHacks(false);
+
         rendering = false;
 
     }