From a27076f174dfda1498a138c5567f259c41c27586 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 27 Feb 2015 17:14:29 +0200 Subject: Method for requesting column width recalculation (#16748) Change-Id: I089f08a056a358d9857ce6608293878e2b8bbd9e --- server/src/com/vaadin/ui/Grid.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'server') 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. + *

+ * 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(); + } } -- cgit v1.2.3