summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2012-09-03 12:09:36 +0300
committerJohn Ahlroos <john@vaadin.com>2012-09-03 12:09:46 +0300
commit169920045e870e307dee9e2447487a9befc896c7 (patch)
tree4364fc2a237bf8844ffa3e33774d1caee6776e8f
parentbd2e7a495b10fe903d1473ca1c5c6cbff9bf7011 (diff)
downloadvaadin-framework-169920045e870e307dee9e2447487a9befc896c7.tar.gz
vaadin-framework-169920045e870e307dee9e2447487a9befc896c7.zip
Fixing failing undefined width calculations
-rw-r--r--client/src/com/vaadin/client/ui/AbstractComponentConnector.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/AbstractComponentConnector.java b/client/src/com/vaadin/client/ui/AbstractComponentConnector.java
index d5e8dc0ba0..294d793050 100644
--- a/client/src/com/vaadin/client/ui/AbstractComponentConnector.java
+++ b/client/src/com/vaadin/client/ui/AbstractComponentConnector.java
@@ -239,12 +239,12 @@ public abstract class AbstractComponentConnector extends AbstractConnector
@Override
public boolean isUndefinedHeight() {
- return getState().height == null || getState().height.length() == 0;
+ return ComponentStateUtil.isUndefinedHeight(getState());
}
@Override
public boolean isUndefinedWidth() {
- return getState().width == null && getState().width.length() == 0;
+ return ComponentStateUtil.isUndefinedWidth(getState());
}
/*