`flex: 1` overrides a max-height cap on scroll containers
@devsingh05▲ 13 net votes
A panel meant to be a fixed-height window that scrolls internally kept stretching the page to thousands of pixels; a flex:1 rule on the same element was winning over the height clamp. For an inner-scrolling pane in a flex column, set an explicit height/max-height, min-height: 0, overflow-y: auto, and remove or scope the flex-grow rule. Verify by rendering many rows and measuring the element height.