From: Artur Signell Date: Fri, 18 Nov 2011 09:24:08 +0000 (+0000) Subject: #6494 Making tables invisible and visible again does not work correctly X-Git-Tag: 7.0.0.alpha1~225^2~3^2~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dcc6cecf3633ae471855b858d466c3ae0469480a;p=vaadin-framework.git #6494 Making tables invisible and visible again does not work correctly svn changeset:22059/svn branch:6.7 --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index 959b92cffa..c919d82923 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@ -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)) {