summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2015-09-29 18:51:36 +0300
committerJohannes Dahlström <johannesd@vaadin.com>2015-10-08 13:23:38 +0300
commit5eee3acc26ba05d4e3d82d43c1f3e937384d32cb (patch)
tree05e8f038c3a33c5c79aabed91723f2ffc93dc3f1 /server
parented5b1f2c279c37ba80da179f92fd66a4e43342f9 (diff)
downloadvaadin-framework-5eee3acc26ba05d4e3d82d43c1f3e937384d32cb.tar.gz
vaadin-framework-5eee3acc26ba05d4e3d82d43c1f3e937384d32cb.zip
Report user-resized column widths to server (#16838)
Change-Id: Id53bab75688ab7f01d6b64f679d2a40e03714c97
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/ui/Grid.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/Grid.java b/server/src/com/vaadin/ui/Grid.java
index 8aa3e90929..8d8b0fe8e3 100644
--- a/server/src/com/vaadin/ui/Grid.java
+++ b/server/src/com/vaadin/ui/Grid.java
@@ -4267,11 +4267,18 @@ public class Grid extends AbstractFocusable implements SelectionNotifier,
if (rowKey != null) {
itemId = getKeyMapper().get(rowKey);
}
-
fireEvent(new GridContextClickEvent(Grid.this, details,
section, rowIndex, itemId,
getPropertyIdByColumnId(columnId)));
}
+
+ @Override
+ public void columnResized(String id, double pixels) {
+ final Column column = getColumnByColumnId(id);
+ if (column != null && column.isResizable()) {
+ column.getState().width = pixels;
+ }
+ }
});
registerRpc(new EditorServerRpc() {