From: Matti Tahvonen Date: Wed, 7 Nov 2007 12:02:10 +0000 (+0000) Subject: fixed panel layout X-Git-Tag: 6.7.0.beta1~5648 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c19fb0119170e4b306125597b9c443fdb81002d4;p=vaadin-framework.git fixed panel layout svn changeset:2735/svn branch:trunk --- 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 7d8edac897..5d2186aff6 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java @@ -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;