From: Leif Åstrand Date: Tue, 28 Feb 2012 07:09:11 +0000 (+0200) Subject: Enable changing size back to undefined (#8304) X-Git-Tag: 7.0.0.alpha2~423 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d8558015efd7ee3feb8f3987fda300c2edafb842;p=vaadin-framework.git Enable changing size back to undefined (#8304) --- diff --git a/src/com/vaadin/ui/AbstractComponent.java b/src/com/vaadin/ui/AbstractComponent.java index 757eedfe2a..1757c6a7d9 100644 --- a/src/com/vaadin/ui/AbstractComponent.java +++ b/src/com/vaadin/ui/AbstractComponent.java @@ -775,7 +775,8 @@ public abstract class AbstractComponent implements Component, MethodEventSource // related code has been updated if (getIcon() != null) { target.addAttribute( - AbstractComponentConnector.ATTRIBUTE_ICON, getIcon()); + AbstractComponentConnector.ATTRIBUTE_ICON, + getIcon()); } if (eventIdentifiers != null) { @@ -868,12 +869,16 @@ public abstract class AbstractComponent implements Component, MethodEventSource && (getHeightUnits() != Unit.PERCENTAGE || ComponentSizeValidator .parentCanDefineHeight(this))) { sharedState.setHeight("" + getCSSHeight()); + } else { + sharedState.setHeight(""); } if (getWidth() >= 0 && (getWidthUnits() != Unit.PERCENTAGE || ComponentSizeValidator .parentCanDefineWidth(this))) { sharedState.setWidth("" + getCSSWidth()); + } else { + sharedState.setWidth(""); } sharedState.setImmediate(isImmediate());