summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-02-27 17:14:29 +0200
committerVaadin Code Review <review@vaadin.com>2015-03-02 12:44:38 +0000
commitb20922110de26639493a120089c0c38d533e370d (patch)
tree9c67896f3a8cf22725117f9a5e66780196e67aa7 /server
parent6ad7ae90209b8d46271fc5dd65db3077a85f43b8 (diff)
downloadvaadin-framework-b20922110de26639493a120089c0c38d533e370d.tar.gz
vaadin-framework-b20922110de26639493a120089c0c38d533e370d.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 a32968bd73..6ab6c6b1a4 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();
+ }
}