From: Matti Tahvonen Date: Tue, 30 Sep 2008 13:50:36 +0000 (+0000) Subject: fixed bug with ExpandLayout FF hack X-Git-Tag: 6.7.0.beta1~4053 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2af2bea17064572913ca06b67154d32a5e87750b;p=vaadin-framework.git fixed bug with ExpandLayout FF hack svn changeset:5564/svn branch:trunk --- 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 a3f4d4aa63..ce128de91b 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java @@ -456,8 +456,8 @@ public class IExpandLayout extends ComplexPanel implements */ private boolean isLastElementDropped() { int firstTop = DOM.getAbsoluteTop(DOM.getFirstChild(childContainer)); - int lastTop = DOM.getAbsoluteTop(DOM.getChild(childContainer, - (getWidgetCount() - 1))); + int lastTop = DOM.getAbsoluteTop(DOM.getChild(childContainer, (DOM + .getChildCount(childContainer) - 1))); return firstTop != lastTop; }