]> source.dussan.org Git - vaadin-framework.git/commitdiff
experimental expand feature for ordered layout
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 17 Oct 2008 13:06:36 +0000 (13:06 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 17 Oct 2008 13:06:36 +0000 (13:06 +0000)
svn changeset:5658/svn branch:trunk

src/com/itmill/toolkit/ui/OrderedLayout.java

index 93929d91d936b0ef770699ac337edc08680f135c..e01b21902eb7736232ca6500dfdfa404e91d3053 100644 (file)
@@ -188,7 +188,7 @@ public class OrderedLayout extends AbstractLayout implements
             // no component has been expanded, all components have same expand
             // rate
             equallyDivided = true;
-            float equalSize = 1 / components.size();
+            float equalSize = 1 / (float) components.size();
             int myRatio = Math.round(equalSize * 1000);
             for (int i = 0; i < expandRatioArray.length; i++) {
                 expandRatioArray[i] = myRatio;