diff options
Diffstat (limited to 'uitest/src/main/java/com')
-rw-r--r-- | uitest/src/main/java/com/vaadin/tests/widgetset/client/ResizeTerrorizerControlConnector.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/widgetset/client/ResizeTerrorizerControlConnector.java b/uitest/src/main/java/com/vaadin/tests/widgetset/client/ResizeTerrorizerControlConnector.java index 4a4bb58488..068896f323 100644 --- a/uitest/src/main/java/com/vaadin/tests/widgetset/client/ResizeTerrorizerControlConnector.java +++ b/uitest/src/main/java/com/vaadin/tests/widgetset/client/ResizeTerrorizerControlConnector.java @@ -244,17 +244,18 @@ public class ResizeTerrorizerControlConnector extends AbstractComponentConnector @Override public void postLayout() { - if (getWidget().startWidth.getValue() == null) { + ResizeTerrorizerControlPanel panel = getWidget(); + if (panel.startWidth.getValue() == null) { int width = getTarget().getWidget().getElement().getOffsetWidth(); - getWidget().startWidth.setValue(width); - getWidget().endWidth + panel.startWidth.setValue(width); + panel.endWidth .setValue(width + getState().defaultWidthOffset); } - if (getWidget().startHeight.getValue() == null) { + if (panel.startHeight.getValue() == null) { int height = getTarget().getWidget().getElement().getOffsetHeight(); - getWidget().startHeight.setValue(height); - getWidget().endHeight + panel.startHeight.setValue(height); + panel.endHeight .setValue(height + getState().defaultHeightOffset); } } |