]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed panel layout
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 7 Nov 2007 12:02:10 +0000 (12:02 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 7 Nov 2007 12:02:10 +0000 (12:02 +0000)
svn changeset:2735/svn branch:trunk

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

index 7d8edac8976de993cce6c2ee2c493c0cbd8c0862..5d2186aff650dadd4ef05b2c43915edd97ddc586 100644 (file)
@@ -128,8 +128,8 @@ public class IPanel extends SimplePanel implements Paintable,
                        DOM.setStyleAttribute(contentNode, "height", ""); 
                        int availableH = DOM.getElementPropertyInt(getElement(), "clientHeight");
                         
-                       int usedH = DOM .getElementPropertyInt(bottomDecoration,
-                       "offsetTop") + DOM.getElementPropertyInt(bottomDecoration,
+                       int usedH = DOM.getElementPropertyInt(bottomDecoration,
+                       "offsetTop") - DOM.getElementPropertyInt(getElement(), "offsetTop") + DOM.getElementPropertyInt(bottomDecoration,
                        "offsetHeight");
 
                        int contentH = availableH - usedH - 1;