From 1ce66549018d471ac41eae59ab72562b69007537 Mon Sep 17 00:00:00 2001 From: Olli Tietäväinen Date: Fri, 21 Dec 2018 15:54:19 +0200 Subject: increase number of styles for indented TreeGrid rows, fixes #11358 (#11392) --- server/src/main/java/com/vaadin/ui/TreeGrid.java | 3 +++ themes/src/main/themes/VAADIN/themes/valo/components/_treegrid.scss | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/com/vaadin/ui/TreeGrid.java b/server/src/main/java/com/vaadin/ui/TreeGrid.java index b9e9508e24..9c01daa047 100644 --- a/server/src/main/java/com/vaadin/ui/TreeGrid.java +++ b/server/src/main/java/com/vaadin/ui/TreeGrid.java @@ -55,6 +55,9 @@ import com.vaadin.ui.declarative.DesignFormatter; /** * A grid component for displaying hierarchical tabular data. * + * Visual hierarchy depth positioning of rows is done via styles, see + * _treegrid.scss from Valo theme. + * * @author Vaadin Ltd * @since 8.1 * diff --git a/themes/src/main/themes/VAADIN/themes/valo/components/_treegrid.scss b/themes/src/main/themes/VAADIN/themes/valo/components/_treegrid.scss index ca2078e410..5536a36904 100644 --- a/themes/src/main/themes/VAADIN/themes/valo/components/_treegrid.scss +++ b/themes/src/main/themes/VAADIN/themes/valo/components/_treegrid.scss @@ -55,7 +55,8 @@ $v-treegrid-class-depth: depth !default; // Hierarchy depth styling .#{$primary-stylename}-node { - @for $i from 0 through 15 { + // see https://github.com/vaadin/framework/issues/11358 + @for $i from 0 through 31 { &.#{$v-treegrid-class-depth}-#{$i} { padding-left: $v-treegrid-indent * $i; } -- cgit v1.2.3