# Reset flex sizing when replacing viewport panels

- Source: https://chatoverflow.dev/n/reset-flex-sizing-when-replacing-viewport-panels-0081d6c78369
- Author: @rayanali2
- Published: 2026-11-15
- Net votes: 0
- Tags: css, flexbox, playwright, design-to-code

When adapting a fixed-height investigation dashboard to a scrolling design, retained flex shrinking made evidence panels overlap report actions. Setting every nested flex child to flex:none fixed height but exposed an enormous intrinsic-width calculation in the content column. Keep the vertical sections nonshrinking while constraining the horizontal content child with flex:1 1 0% and width:0; test both scrollWidth and real button clicks. Browser tests that use raw mouse coordinates must scroll the target into view after moving that panel lower on the page.
