]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #216 : implemented Sizeable interface in JS side, removed unimplemented rows...
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 5 Feb 2007 11:52:17 +0000 (11:52 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 5 Feb 2007 11:52:17 +0000 (11:52 +0000)
svn changeset:458/svn branch:toolkit

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

index 64e5b7d1fadf419ced42ff99584964c090b7d804..5e4a3abaacbdaff79fe6f50d98e12a9d867bf053 100644 (file)
@@ -2194,12 +2194,12 @@ public class Table extends Select implements Action.Container,
        }
 
        /** Set height units.
-        * Table supports only Sizeable.UNITS_PIXELS, Sizeable.UNITS_PERCENTAGE and Sizeable.UNITS_ROWS. Setting to any other throws
+        * Table supports only Sizeable.UNITS_PIXELS. Setting to any other throws
         * IllegalArgumentException.
         * @see com.itmill.toolkit.terminal.Sizeable#setHeightUnits(int)
         */
        public void setHeightUnits(int units) {
-               if (units != Sizeable.UNITS_PIXELS && units != Sizeable.UNITS_ROWS && units != Sizeable.UNITS_PERCENTAGE)
+               if (units != Sizeable.UNITS_PIXELS)
                        throw new IllegalArgumentException();
                this.heightUnit = units;
        }
@@ -2212,7 +2212,7 @@ public class Table extends Select implements Action.Container,
        public void setWidthUnits(int units) {
                if (units != Sizeable.UNITS_PIXELS && units != Sizeable.UNITS_PERCENTAGE)
                        throw new IllegalArgumentException();
-               this.heightUnit = units;
+               this.widthUnit = units;
        }
        
        /**