]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed bug with ExpandLayout FF hack
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 30 Sep 2008 13:50:36 +0000 (13:50 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 30 Sep 2008 13:50:36 +0000 (13:50 +0000)
svn changeset:5564/svn branch:trunk

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

index a3f4d4aa63818eb8345f925c98c6dc5a7da06396..ce128de91b359b6b6a21650ee90377cd544932bf 100644 (file)
@@ -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;
     }