]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed panel scrolling issue
authorArtur Signell <artur.signell@itmill.com>
Mon, 8 Sep 2008 12:27:48 +0000 (12:27 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 8 Sep 2008 12:27:48 +0000 (12:27 +0000)
svn changeset:5375/svn branch:trunk

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

index 349361772283c01956d0831a14297f49bcab93cc..ca2992c224ac3a51c6e18ed6064b39313d6fa37d 100644 (file)
@@ -262,10 +262,7 @@ public class IPanel extends SimplePanel implements Paintable,
             final boolean hasChildren = getWidget() != null;
             Element contentEl = null;
             String origPositioning = null;
-            // save scroll position
-            int scrollTop = DOM.getElementPropertyInt(contentNode, "scrollTop");
-            int scrollLeft = DOM.getElementPropertyInt(contentNode,
-                    "scrollLeft");
+
             if (hasChildren) {
                 // Remove children temporary form normal flow to detect proper
                 // size
@@ -352,7 +349,6 @@ public class IPanel extends SimplePanel implements Paintable,
                     "scrollLeft");
             if (client != null
                     && (newscrollLeft != scrollLeft || newscrollTop != scrollTop)) {
-                ApplicationConnection.getConsole().log("scrollded panel");
                 scrollLeft = newscrollLeft;
                 scrollTop = newscrollTop;
                 client.updateVariable(id, "scrollTop", scrollTop, false);