Skip to content

st/viewport: Only extend child allocation when scrolled

When scrolled, the container's allocation is smaller than the allocation of the content. To account for that, commit 2717ca9d added the additional size reported by the layout manager to the content allocation.

However as it did so unconditionally, we now allow children to extend outside the parent even when not scrolled, which breaks any constraints set on the container (like "width" or "max-height").

Fix this by only extending the child allocation in scrollable dimensions.

Fixes #2491 (closed)

Merge request reports