diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-11-30 14:28:58 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-11-30 12:29:54 +0000 |
commit | 5ff2b734d379f31d0f82b4c3cfbb7d39ad05fc03 (patch) | |
tree | d4af1fb91962f53f4393e7618c7419fdc7ee7c66 | |
parent | ed3f08b0385fba7a28269cacd3f20c62e303769f (diff) | |
download | vaadin-framework-5ff2b734d379f31d0f82b4c3cfbb7d39ad05fc03.tar.gz vaadin-framework-5ff2b734d379f31d0f82b4c3cfbb7d39ad05fc03.zip |
Prevent column drag resize from setting selection column width (#19324)
Change-Id: Ifd7a225ac8037a86e4a15603bf47ca93009fa302
-rw-r--r-- | client/src/com/vaadin/client/widgets/Grid.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index 065ba411d8..1304c40030 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -5586,6 +5586,11 @@ public class Grid<T> extends ResizeComposite implements initialWidth = col.getWidthActual(); for (Column<?, T> c : getColumns()) { + if (selectionColumn == c) { + // Don't modify selection column. + continue; + } + if (c.getWidth() < 0) { c.setWidth(c.getWidthActual()); fireEvent(new ColumnResizeEvent<T>( |