summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authoradam <adam@vaadin.com>2016-05-30 15:07:55 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-06-07 08:22:14 +0000
commit5ce9d387a1b0b749f12feb627a3d56556a9727a5 (patch)
treee9380bb0cf2b0fcb2dd44cb48e9dd89782cd8c92 /client
parentbc0dd14e6778390272b754b5e5686a3e40652de0 (diff)
downloadvaadin-framework-5ce9d387a1b0b749f12feb627a3d56556a9727a5.tar.gz
vaadin-framework-5ce9d387a1b0b749f12feb627a3d56556a9727a5.zip
Fixing messed up column in Grid after hide, resize and show (#19826)
When resizing a column in Grid, widths of all columns without a fixed width (-1) are set to their actual width. This is 0 when the column is hidden. Change-Id: If50e71c748cd0674f44d9e51777518eb48b42c5c
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/widgets/Grid.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/widgets/Grid.java b/client/src/main/java/com/vaadin/client/widgets/Grid.java
index 0a6059f274..93aeac0d68 100644
--- a/client/src/main/java/com/vaadin/client/widgets/Grid.java
+++ b/client/src/main/java/com/vaadin/client/widgets/Grid.java
@@ -5702,7 +5702,7 @@ public class Grid<T> extends ResizeComposite implements
minCellWidth = escalator
.getMinCellWidth(getColumns()
.indexOf(col));
- for (Column<?, T> c : getColumns()) {
+ for (Column<?, T> c : getVisibleColumns()) {
if (selectionColumn == c) {
// Don't modify selection column.
continue;