From 091a33b2ef8b4950bffad80fdc701b1b6858ec35 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Wed, 21 Nov 2007 12:25:06 +0000 Subject: [PATCH] IExpandLayout: fixed bottom margin detection svn changeset:2878/svn branch:trunk --- .../itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java index f4e71cfc92..05af757c55 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java @@ -426,10 +426,11 @@ public class IExpandLayout extends ComplexPanel implements int marginTop = DOM.getElementPropertyInt(DOM.getFirstChild(me), "offsetTop") - - DOM.getElementPropertyInt(me, "offsetTop"); + - DOM.getElementPropertyInt(element, "offsetTop"); Element lastElement = DOM.getChild(me, (DOM.getChildCount(me) - 1)); int marginBottom = DOM.getElementPropertyInt(me, "offsetHeight") + + DOM.getElementPropertyInt(me, "offsetTop") - (DOM.getElementPropertyInt(lastElement, "offsetTop") + DOM .getElementPropertyInt(lastElement, "offsetHeight")); size -= (marginTop + marginBottom); // FIXME expects same size -- 2.39.5