From: Matti Tahvonen Date: Mon, 5 Feb 2007 11:52:17 +0000 (+0000) Subject: fixes #216 : implemented Sizeable interface in JS side, removed unimplemented rows... X-Git-Tag: 6.7.0.beta1~6699 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=21aee415db84e4816c1298b50b39fcd55d40df44;p=vaadin-framework.git fixes #216 : implemented Sizeable interface in JS side, removed unimplemented rows and percentage units from height from Java side svn changeset:458/svn branch:toolkit --- diff --git a/src/com/itmill/toolkit/ui/Table.java b/src/com/itmill/toolkit/ui/Table.java index 64e5b7d1fa..5e4a3abaac 100644 --- a/src/com/itmill/toolkit/ui/Table.java +++ b/src/com/itmill/toolkit/ui/Table.java @@ -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; } /**