aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2008-11-10 12:33:19 +0000
committerArtur Signell <artur.signell@itmill.com>2008-11-10 12:33:19 +0000
commit562535a449bf00c8d42cabf47c1e07662070094a (patch)
treed90edeac4053cc81010f6a86bb30730d01439284
parentf07b87404748fbf2544663a4f8958cb0d781f5d2 (diff)
downloadvaadin-framework-562535a449bf00c8d42cabf47c1e07662070094a.tar.gz
vaadin-framework-562535a449bf00c8d42cabf47c1e07662070094a.zip
Fix for OrderedLayout component remove problem
svn changeset:5844/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/layout/CellBasedLayout.java4
1 files 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);