summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-08-11 15:27:27 +0300
committerHenri Sara <henri.sara@gmail.com>2017-08-11 15:27:27 +0300
commitbda7e54cb6eadddf07fb19d88479c642c4831a66 (patch)
tree4b88c87dd70733cf1c309630c8c2e0e8ca2ad15b /shared
parent9a491b040d5c9d11e227acfdecfa867e5d7cf7d2 (diff)
downloadvaadin-framework-bda7e54cb6eadddf07fb19d88479c642c4831a66.tar.gz
vaadin-framework-bda7e54cb6eadddf07fb19d88479c642c4831a66.zip
Provide API for setting row heights in Grid for different sections (#9810)
Fixes #9425
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java21
1 files changed, 18 insertions, 3 deletions
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;
}