From f9a9f2c4be0e38d936acab88cba45799fa83ff4a Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Wed, 29 Mar 2017 11:18:07 +0300 Subject: Add Grid.setRowHeight() (#8935) Fixes #8667 --- shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'shared') diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java b/shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java index 6725d01137..77744a9bb0 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java @@ -22,6 +22,7 @@ import java.util.List; import com.vaadin.shared.annotations.DelegateToWidget; import com.vaadin.shared.data.sort.SortDirection; import com.vaadin.shared.ui.AbstractSingleSelectState; + import elemental.json.JsonArray; /** @@ -102,7 +103,7 @@ public class GridState extends AbstractSingleSelectState { /** * Column resize mode in grid. - * + * * @since 7.7.5 */ public ColumnResizeMode columnResizeMode = ColumnResizeMode.ANIMATED; @@ -145,4 +146,12 @@ public class GridState extends AbstractSingleSelectState { @DelegateToWidget public boolean columnReorderingAllowed; + /** + * Explicit row height in pixels for grid rows, or -1 to calculate + * automatically based on the theme. + * + * @since 8.1 + */ + public double rowHeight = -1; + } -- cgit v1.2.3