Skip to content

Commit 57abb69

Browse files
authored
fix: prevent split-layout from overflowing parent flex container (#11462)
## Description Add `min-height: 0` to the `:host` rule so that the `split-layout`, when used as a flex item, can shrink below its content's natural height. Without this, a grid inside a horizontal `split-layout` in a flex column parent expands to full content height instead of scrolling internally. Fixes #11362 ## Type of change - Bugfix
1 parent 26ebee1 commit 57abb69

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/split-layout/src/styles/vaadin-split-layout-base-styles.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const splitLayoutStyles = css`
1010
:host {
1111
display: flex;
1212
contain: layout;
13+
min-height: 0;
1314
}
1415
1516
:host([hidden]) {

0 commit comments

Comments
 (0)