]> source.dussan.org Git - vaadin-framework.git/commitdiff
Enable changing size back to undefined (#8304)
authorLeif Åstrand <leif@vaadin.com>
Tue, 28 Feb 2012 07:09:11 +0000 (09:09 +0200)
committerLeif Åstrand <leif@vaadin.com>
Tue, 28 Feb 2012 13:03:59 +0000 (15:03 +0200)
src/com/vaadin/ui/AbstractComponent.java

index 757eedfe2a7bdc119b524e90ea3768226afa39c4..1757c6a7d93183e64cadf7665f3f2ed8bfecfb18 100644 (file)
@@ -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());