From bda7e54cb6eadddf07fb19d88479c642c4831a66 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Fri, 11 Aug 2017 15:27:27 +0300 Subject: Provide API for setting row heights in Grid for different sections (#9810) Fixes #9425 --- .../java/com/vaadin/shared/ui/grid/GridState.java | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (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 77744a9bb0..f2ebd903b2 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 @@ -147,11 +147,26 @@ public class GridState extends AbstractSingleSelectState { public boolean columnReorderingAllowed; /** - * Explicit row height in pixels for grid rows, or -1 to calculate + * Explicit body row height in pixels for grid rows, or -1 to calculate * automatically based on the theme. * - * @since 8.1 + * @since 8.1.2 */ - public double rowHeight = -1; + public double bodyRowHeight = -1; + /** + * Explicit body row height in pixels for grid rows, or -1 to calculate + * automatically based on the theme. + * + * @since 8.1.2 + */ + public double headerRowHeight = -1; + + /** + * Explicit body row height in pixels for grid rows, or -1 to calculate + * automatically based on the theme. + * + * @since 8.1.2 + */ + public double footerRowHeight = -1; } -- cgit v1.2.3