Skip to content

Commit b4517d7

Browse files
javier-godoypaodb
authored andcommitted
fix: fix layout scroll in Vaadin 25
1 parent 787670c commit b4517d7

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/com/flowingcode/vaadin/addons/demo/SplitLayoutDemo.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public SplitLayoutDemo(Component demo, String sourceUrl, SourcePosition sourcePo
4141
}
4242

4343
public SplitLayoutDemo(Component demo, List<SourceCodeTab> tabs) {
44+
setClassName("commons-demo-split-layout");
4445
getContent().setOrientation(Orientation.HORIZONTAL);
4546

4647
Map<String, String> properties = new HashMap<>();

src/main/resources/META-INF/resources/frontend/styles/commons-demo/shared-styles.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,7 @@ code-highlighter code {
4343
right: 10px;
4444
top: 10px;
4545
cursor: pointer;
46-
}
46+
}
47+
48+
.commons-demo-split-layout { overflow: hidden }
49+
.commons-demo-split-layout > [slot] { overflow: auto; }

0 commit comments

Comments
 (0)