aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-02-27 17:14:29 +0200
committerLeif Åstrand <leif@vaadin.com>2015-03-02 15:03:35 +0200
commita27076f174dfda1498a138c5567f259c41c27586 (patch)
tree22184563ecfde4a6828b239f43d27635a687f552 /server
parent8c9e548711f173c59c58d89a5a388820e0a74d62 (diff)
downloadvaadin-framework-a27076f174dfda1498a138c5567f259c41c27586.tar.gz
vaadin-framework-a27076f174dfda1498a138c5567f259c41c27586.zip
Method for requesting column width recalculation (#16748)
Change-Id: I089f08a056a358d9857ce6608293878e2b8bbd9e
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/ui/Grid.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/Grid.java b/server/src/com/vaadin/ui/Grid.java
index 2bc42676c3..6cab170565 100644
--- a/server/src/com/vaadin/ui/Grid.java
+++ b/server/src/com/vaadin/ui/Grid.java
@@ -5080,4 +5080,17 @@ public class Grid extends AbstractComponent implements SelectionNotifier,
public void removeListener(ItemClickListener listener) {
removeItemClickListener(listener);
}
+
+ /**
+ * Requests that the column widths should be recalculated.
+ * <p>
+ * In most cases Grid will know when column widths need to be recalculated
+ * but this method can be used to force recalculation in situations when
+ * grid does not recalculate automatically.
+ *
+ * @since
+ */
+ public void recalculateColumnWidths() {
+ getRpcProxy(GridClientRpc.class).recalculateColumnWidths();
+ }
}