summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2011-11-18 09:24:08 +0000
committerArtur Signell <artur.signell@itmill.com>2011-11-18 09:24:08 +0000
commitdcc6cecf3633ae471855b858d466c3ae0469480a (patch)
tree01b10c5f6b9122c86043a058584f4486e8875971 /src/com/vaadin/terminal
parent314e9254ed188f71cc6d5250671e6d01727da63b (diff)
downloadvaadin-framework-dcc6cecf3633ae471855b858d466c3ae0469480a.tar.gz
vaadin-framework-dcc6cecf3633ae471855b858d466c3ae0469480a.zip
#6494 Making tables invisible and visible again does not work correctly
svn changeset:22059/svn branch:6.7
Diffstat (limited to 'src/com/vaadin/terminal')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java8
1 files changed, 8 insertions, 0 deletions
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)) {