]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add stylenames to paintable if either dimension is undefined (#8313)
authorLeif Åstrand <leif@vaadin.com>
Mon, 20 Feb 2012 14:02:54 +0000 (16:02 +0200)
committerLeif Åstrand <leif@vaadin.com>
Mon, 20 Feb 2012 14:02:54 +0000 (16:02 +0200)
src/com/vaadin/terminal/gwt/client/ui/VAbstractPaintableWidget.java

index 9c8853bd88d944da933ee7a14949b5575a93e05f..c7f5c5975445e787b535e2c95be2597db1fea15e 100644 (file)
@@ -218,6 +218,9 @@ public abstract class VAbstractPaintableWidget implements VPaintableWidget {
         // Set defined sizes
         Widget component = getWidgetForPaintable();
 
+        component.setStyleName("v-undefined-width", isUndefinedWidth());
+        component.setStyleName("v-undefined-height", isUndefinedHeight());
+
         component.setHeight(h);
         component.setWidth(w);
     }