Skip to content

Fix container scroll bounds by factoring child layout heights#445

Open
notdanilo wants to merge 1 commit into
DioxusLabs:mainfrom
notdanilo:main
Open

Fix container scroll bounds by factoring child layout heights#445
notdanilo wants to merge 1 commit into
DioxusLabs:mainfrom
notdanilo:main

Conversation

@notdanilo
Copy link
Copy Markdown

Proposed Changes

This PR fixes the scroll clamping issue #444 by computing a corrected scrollable height for scrollable containers based on their layout children's actual vertical bounds:

True Scrollable Area Calculation: Iterates through the container's layout children to find the bottom-most point (location.y + size.height) and factors in padding and border height. The maximum of this calculation and the default layout scroll height is used.

Impact

Ensures scrollable containers allow users to scroll fully to the bottom of all content.

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