aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java4
1 files changed, 2 insertions, 2 deletions
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;
}