summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlli Tietäväinen <ollit@vaadin.com>2018-12-21 15:54:19 +0200
committerGitHub <noreply@github.com>2018-12-21 15:54:19 +0200
commit1ce66549018d471ac41eae59ab72562b69007537 (patch)
treee465930d4e9b06de1b95b565d1d7a965eef5d7d0
parent0cfbee6ed5663d928a31def30d111733eae93731 (diff)
downloadvaadin-framework-1ce66549018d471ac41eae59ab72562b69007537.tar.gz
vaadin-framework-1ce66549018d471ac41eae59ab72562b69007537.zip
increase number of styles for indented TreeGrid rows, fixes #11358 (#11392)
-rw-r--r--server/src/main/java/com/vaadin/ui/TreeGrid.java3
-rw-r--r--themes/src/main/themes/VAADIN/themes/valo/components/_treegrid.scss3
2 files changed, 5 insertions, 1 deletions
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
+ * <code>_treegrid.scss</code> 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;
}