]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #2454 (defining expand ratios now repaints component)
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 19 Jan 2009 15:08:47 +0000 (15:08 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 19 Jan 2009 15:08:47 +0000 (15:08 +0000)
svn changeset:6595/svn branch:trunk

src/com/itmill/toolkit/ui/AbstractOrderedLayout.java
src/com/itmill/toolkit/ui/GridLayout.java

index 6e430c98f28f5e7ab41668eb84ae35f87d7b323c..8d4b78b3edd16b6cb35b9bcd2f082dfaea239d8d 100644 (file)
@@ -329,6 +329,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
     public void setExpandRatio(Component component, float ratio) {
         if (components.contains(component)) {
             componentToExpandRatio.put(component, ratio);
+            requestRepaint();
         } else {
             throw new IllegalArgumentException(
                     "Component must be added to layout before using setExpandRatio()");
index 49618620e304902c02fff33ad6f92ece3d1635ff..17cdc6754f7e0ef21cfc5df58d363ff664d764e2 100644 (file)
@@ -1215,6 +1215,7 @@ public class GridLayout extends AbstractLayout implements
      */
     public void setColumnExpandRatio(int columnIndex, float ratio) {
         columnExpandRatio.put(columnIndex, ratio);
+        requestRepaint();
     }
 
     /**
@@ -1248,6 +1249,7 @@ public class GridLayout extends AbstractLayout implements
      */
     public void setRowExpandRatio(int rowIndex, float ratio) {
         rowExpandRatio.put(rowIndex, ratio);
+        requestRepaint();
     }
 
     /**