Browse Source

increase number of styles for indented TreeGrid rows, fixes #11358 (#11392)

tags/8.7.0.beta1
Olli Tietäväinen 5 years ago
parent
commit
1ce6654901
No account linked to committer's email address

+ 3
- 0
server/src/main/java/com/vaadin/ui/TreeGrid.java View File

@@ -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
*

+ 2
- 1
themes/src/main/themes/VAADIN/themes/valo/components/_treegrid.scss View File

@@ -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;
}

Loading…
Cancel
Save