From: Matti Tahvonen Date: Fri, 17 Oct 2008 13:06:36 +0000 (+0000) Subject: experimental expand feature for ordered layout X-Git-Tag: 6.7.0.beta1~3973 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=914be18256bb9f4ddb12a4d35a8e3bd870bb6d7e;p=vaadin-framework.git experimental expand feature for ordered layout svn changeset:5658/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/ui/OrderedLayout.java b/src/com/itmill/toolkit/ui/OrderedLayout.java index 93929d91d9..e01b21902e 100644 --- a/src/com/itmill/toolkit/ui/OrderedLayout.java +++ b/src/com/itmill/toolkit/ui/OrderedLayout.java @@ -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;