]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixing failing undefined width calculations
authorJohn Ahlroos <john@vaadin.com>
Mon, 3 Sep 2012 09:09:36 +0000 (12:09 +0300)
committerJohn Ahlroos <john@vaadin.com>
Mon, 3 Sep 2012 09:09:46 +0000 (12:09 +0300)
client/src/com/vaadin/client/ui/AbstractComponentConnector.java

index d5e8dc0ba0e48b4c562df3be4b913a354e742d7f..294d793050c4abb75094e21da109ebbfdb4491f1 100644 (file)
@@ -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());
     }
 
     /*