From 562535a449bf00c8d42cabf47c1e07662070094a Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 10 Nov 2008 12:33:19 +0000 Subject: [PATCH] Fix for OrderedLayout component remove problem svn changeset:5844/svn branch:trunk --- .../terminal/gwt/client/ui/layout/CellBasedLayout.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5