Skip to content

fix: prevent split-layout from overflowing parent flex container#11462

Merged
DiegoCardoso merged 1 commit intomainfrom
fix/split-layout/min-height
Apr 9, 2026
Merged

fix: prevent split-layout from overflowing parent flex container#11462
DiegoCardoso merged 1 commit intomainfrom
fix/split-layout/min-height

Conversation

@DiegoCardoso
Copy link
Copy Markdown
Contributor

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

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
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 9, 2026

@DiegoCardoso DiegoCardoso marked this pull request as ready for review April 9, 2026 09:14
@DiegoCardoso DiegoCardoso requested a review from jouni April 9, 2026 09:14
@DiegoCardoso DiegoCardoso merged commit 57abb69 into main Apr 9, 2026
10 checks passed
@DiegoCardoso DiegoCardoso deleted the fix/split-layout/min-height branch April 9, 2026 12:40
vaadin-bot pushed a commit that referenced this pull request Apr 9, 2026
)

## 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
DiegoCardoso added a commit that referenced this pull request Apr 9, 2026
) (CP: 25.1) (#11471)

This PR cherry-picks changes from the original PR #11462 to branch 25.1.

---

#### Original PR description
> ## 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
>

Co-authored-by: Diego Cardoso <diego@vaadin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Grid vertical scroll broken with Aura base styles - #scroller missing position:absolute

4 participants