summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2015-03-31 12:03:56 +0300
committerVaadin Code Review <review@vaadin.com>2015-03-31 11:38:55 +0000
commit3ab82ace45827365e87f9540fad3dffaed0679b5 (patch)
tree776c71afb78fe6c051346ad9518e944bcdb79e77 /client
parent417d0e39523b013b1d102c3b5e282deb4a3ec63f (diff)
downloadvaadin-framework-3ab82ace45827365e87f9540fad3dffaed0679b5.tar.gz
vaadin-framework-3ab82ace45827365e87f9540fad3dffaed0679b5.zip
Don't remove frozen columns when columns reordered in Grid #16901
Change-Id: Ib812ecd6afeb92d56bb179bcb120c65f20d26a8c
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/widgets/Grid.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java
index 31cf4ec866..4b27e17e37 100644
--- a/client/src/com/vaadin/client/widgets/Grid.java
+++ b/client/src/com/vaadin/client/widgets/Grid.java
@@ -4680,7 +4680,6 @@ public class Grid<T> extends ResizeComposite implements
escalator.getColumnConfiguration()
.setFrozenColumnCount(numberOfColumns);
-
}
/**
@@ -5960,6 +5959,9 @@ public class Grid<T> extends ResizeComposite implements
// Do ComplexRenderer.init and render new content
conf.insertColumns(0, columns.size());
+ // Number of frozen columns should be kept same #16901
+ updateFrozenColumns();
+
// Update column widths.
for (Column<?, T> column : columns) {
column.reapplyWidth();