diff options
author | Artur Signell <artur.signell@itmill.com> | 2008-09-08 12:27:48 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2008-09-08 12:27:48 +0000 |
commit | c1d57eb9243984ba40b074c043ecba9018f22db2 (patch) | |
tree | 027e4ae7e6ccf8da4666035c9e0c0d746b0e47a5 | |
parent | 04ce2b7a1532dec27eff9aaf753db9530c8a5d58 (diff) | |
download | vaadin-framework-c1d57eb9243984ba40b074c043ecba9018f22db2.tar.gz vaadin-framework-c1d57eb9243984ba40b074c043ecba9018f22db2.zip |
Fixed panel scrolling issue
svn changeset:5375/svn branch:trunk
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java index 3493617722..ca2992c224 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java @@ -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); |