]> source.dussan.org Git - vaadin-framework.git/commitdiff
#6494 Making tables invisible and visible again does not work correctly
authorArtur Signell <artur.signell@itmill.com>
Fri, 18 Nov 2011 09:24:08 +0000 (09:24 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 18 Nov 2011 09:24:08 +0000 (09:24 +0000)
svn changeset:22059/svn branch:6.7

src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index 959b92cffaea137c832d83973cc00c4b015bf15d..c919d82923edf55b02fade068b82fb63b1fbf7d1 100644 (file)
@@ -5704,6 +5704,14 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
         if (this.width.equals(width)) {
             return;
         }
+        if (!isVisible()) {
+            /*
+             * Do not update size when the table is hidden as all column widths
+             * will be set to zero and they won't be recalculated when the table
+             * is set visible again (until the size changes again)
+             */
+            return;
+        }
 
         this.width = width;
         if (width != null && !"".equals(width)) {