]> source.dussan.org Git - vaadin-framework.git/commitdiff
Avoid comparing Widget with VPaintableWidget
authorArtur Signell <artur@vaadin.com>
Thu, 26 Jan 2012 15:07:08 +0000 (17:07 +0200)
committerArtur Signell <artur@vaadin.com>
Thu, 26 Jan 2012 15:07:08 +0000 (17:07 +0200)
src/com/vaadin/terminal/gwt/client/ApplicationConnection.java

index 9b756382f365e1a9df61cfaba9925dbab9dac7e4..18f7b19e925b430b3967c6603705a36fe6c314d2 100644 (file)
@@ -1821,7 +1821,7 @@ public class ApplicationConnection {
         while (childWidgets.hasNext()) {
             final Widget child = childWidgets.next();
 
-            if (child instanceof VPaintableWidget) {
+            if (getPaintableMap().isPaintable(child)) {
 
                 if (handleComponentRelativeSize(child)) {
                     /*
@@ -1856,7 +1856,7 @@ public class ApplicationConnection {
         if (paintable == null) {
             return false;
         }
-        boolean debugSizes = false;
+        boolean debugSizes = true;
 
         FloatSize relativeSize = paintableMap.getRelativeSize(paintable);
         if (relativeSize == null) {