diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2015-10-13 16:49:32 +0300 |
---|---|---|
committer | Markus Koivisto <markus@vaadin.com> | 2015-10-21 12:53:08 +0000 |
commit | 883fa51bc9cddef014b790b8fa38db8dbc3e7bec (patch) | |
tree | 9143878aca09a27816c001a8870653f1c0b8202d /client | |
parent | 6b41e810b5c356b9840b4659d9127a09e266c921 (diff) | |
download | vaadin-framework-883fa51bc9cddef014b790b8fa38db8dbc3e7bec.tar.gz vaadin-framework-883fa51bc9cddef014b790b8fa38db8dbc3e7bec.zip |
Set pixel sizes to Grid columns when user starts drag resize (#16838)
This makes column resizes smoother and more intuitive.
Change-Id: I6e4e92e0391d8f95f74ec89cfc3ffbbb133c7ecc
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/widgets/Grid.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index e10da5494a..ccc909465f 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -5582,6 +5582,14 @@ public class Grid<T> extends ResizeComposite implements @Override public void onStart() { initialWidth = col.getWidthActual(); + + for (Column<?, T> c : getColumns()) { + if (c.getWidth() < 0) { + c.setWidth(c.getWidthActual()); + fireEvent(new ColumnResizeEvent<T>( + c)); + } + } } @Override |