Skip to content
This repository was archived by the owner on Dec 31, 2020. It is now read-only.

Commit 32b2163

Browse files
author
Sami Viitanen
committed
Simple padding example to split panel usage
1 parent f820ea3 commit 32b2163

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

gridstack-demo/src/main/java/org/vaadin/alump/gridstack/demo/SplitView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class SplitView extends HorizontalSplitPanel implements View {
2323

2424
public SplitView() {
2525
setSizeFull();
26+
addStyleName("test-splitpanel");
2627

2728
setFirstComponent(createLeftSide());
2829
setSecondComponent(createRightSide());

gridstack-demo/src/main/webapp/VAADIN/themes/demo/styles.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,9 @@
9191
.info-text {
9292
font-size: 80%;
9393
}
94+
95+
.test-splitpanel > div > .v-splitpanel-second-container {
96+
padding-top: 6px;
97+
padding-bottom: 6px;
98+
}
9499
}

0 commit comments

Comments
 (0)