]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for OrderedLayout component remove problem
authorArtur Signell <artur.signell@itmill.com>
Mon, 10 Nov 2008 12:33:19 +0000 (12:33 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 10 Nov 2008 12:33:19 +0000 (12:33 +0000)
svn changeset:5844/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/layout/CellBasedLayout.java

index 09d1b5164d72709e4620544af705ec1a8f59aabb..ba6580608f3ffc9fd9e2a525d4e785af3a009700 100644 (file)
@@ -203,7 +203,7 @@ public abstract class CellBasedLayout extends ComplexPanel implements Container
         DOM.setStyleAttribute(root, "marginBottom", activeMargins\r
                 .getMarginBottom()\r
                 + "px");\r
-                \r
+\r
     }\r
 \r
     protected boolean measureMarginsAndSpacing(String styleName,\r
@@ -261,7 +261,7 @@ public abstract class CellBasedLayout extends ComplexPanel implements Container
         // Remove all children after position "pos" but leave the clear element\r
         // in place\r
 \r
-        int toRemove = getChildren().size() - pos - 1;\r
+        int toRemove = getChildren().size() - pos;\r
         while (toRemove-- > 0) {\r
             ChildComponentContainer child = (ChildComponentContainer) getChildren()\r
                     .get(pos);\r