aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorAnna Koskinen <anna@vaadin.com>2016-06-01 11:56:34 +0300
committerJohannes Dahlström <johannesd@vaadin.com>2016-06-29 12:43:16 +0000
commitedad7348bb8eba807225bfa72d4b0a4342426c71 (patch)
tree4eefaf917c8ef6ab7c7c250597de32b94c8a4fe5 /shared
parent75b282c319b2783d0ea2737727081c6923342ac0 (diff)
downloadvaadin-framework-edad7348bb8eba807225bfa72d4b0a4342426c71.tar.gz
vaadin-framework-edad7348bb8eba807225bfa72d4b0a4342426c71.zip
Updates to Grid's height handling (#19690).
- new height more for undefined height that works like in Table and resizes the grid when details row opens or closes Change-Id: I2dc817140308093865be30de72edcd6494e4a44b
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/grid/HeightMode.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/HeightMode.java b/shared/src/main/java/com/vaadin/shared/ui/grid/HeightMode.java
index 4cd19a01b1..7fc992566f 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/grid/HeightMode.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/grid/HeightMode.java
@@ -38,5 +38,11 @@ public enum HeightMode {
* The height of the Component or Widget in question is defined by a number
* of rows.
*/
- ROW;
+ ROW,
+
+ /**
+ * The height of the Component or Widget in question is defined by its
+ * contents.
+ */
+ UNDEFINED;
}