]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed used space calculation for ExpandLayout
authorArtur Signell <artur.signell@itmill.com>
Mon, 18 Aug 2008 10:14:30 +0000 (10:14 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 18 Aug 2008 10:14:30 +0000 (10:14 +0000)
svn changeset:5203/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java

index 99f66332352222f03ab49b79b1ebf4c01de5f886..80b9c2a3fdfc72144f0211560ec262acd7355625 100644 (file)
@@ -433,7 +433,8 @@ public class IExpandLayout extends ComplexPanel implements
         final Iterator it = iterator();
         while (it.hasNext()) {
             final Widget w = (Widget) it.next();
-            if (w != expandedWidget) {
+            
+            if (w instanceof Paintable && w != expandedWidget) {
                 final WidgetWrapper wr = getWidgetWrapperFor(w);
                 if (orientationMode == ORIENTATION_VERTICAL) {
                     total += wr.getOffsetHeight();