From 169920045e870e307dee9e2447487a9befc896c7 Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Mon, 3 Sep 2012 12:09:36 +0300 Subject: [PATCH] Fixing failing undefined width calculations --- .../src/com/vaadin/client/ui/AbstractComponentConnector.java | 4 ++-- 1 file 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()); } /* -- 2.39.5