Skip to content

fix(css): don’t stretch auto-height flex items under bounded constraints#843

Merged
andycall merged 1 commit intomainfrom
fix/flex_layout_content_size
Feb 3, 2026
Merged

fix(css): don’t stretch auto-height flex items under bounded constraints#843
andycall merged 1 commit intomainfrom
fix/flex_layout_content_size

Conversation

@andycall
Copy link
Member

@andycall andycall commented Feb 3, 2026

Problem

Auto-height flex containers could incorrectly stretch to a parent's bounded (non-tight) max-height, producing an oversized RenderFlexLayout height (e.g. list/sliver item contexts).

Fix

  • Require a definite parent height before treating flex items as cross-axis stretched (CSSRenderStyle.isHeightStretch).
  • : always provide Directionality; only wrap with EasyRefresh when refresh/loadmore listeners exist (avoids pending timers in widget tests).

Tests

  • flutter test webf/test/src/rendering/flex_auto_height_list_view_test.dart
  • cd integration_tests && WEBF_TEST_FILTER="flex-auto-height-webf-list-view" npm run integration

Snapshots

  • Updated listview snapshot + added new flex auto-height snapshot.

@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
use-case Ready Ready Preview, Comment Feb 3, 2026 4:24pm
vue_usecase Ready Ready Preview, Comment Feb 3, 2026 4:24pm

Request Review

@andycall andycall merged commit 841cbd0 into main Feb 3, 2026
31 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant