From: Artur Signell Date: Mon, 10 Nov 2008 12:33:19 +0000 (+0000) Subject: Fix for OrderedLayout component remove problem X-Git-Tag: 6.7.0.beta1~3845 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=562535a449bf00c8d42cabf47c1e07662070094a;p=vaadin-framework.git Fix for OrderedLayout component remove problem svn changeset:5844/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/CellBasedLayout.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/CellBasedLayout.java index 09d1b5164d..ba6580608f 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/CellBasedLayout.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/CellBasedLayout.java @@ -203,7 +203,7 @@ public abstract class CellBasedLayout extends ComplexPanel implements Container DOM.setStyleAttribute(root, "marginBottom", activeMargins .getMarginBottom() + "px"); - + } protected boolean measureMarginsAndSpacing(String styleName, @@ -261,7 +261,7 @@ public abstract class CellBasedLayout extends ComplexPanel implements Container // Remove all children after position "pos" but leave the clear element // in place - int toRemove = getChildren().size() - pos - 1; + int toRemove = getChildren().size() - pos; while (toRemove-- > 0) { ChildComponentContainer child = (ChildComponentContainer) getChildren() .get(pos);