Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebuild the full UI when the window is resized. #163

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

veger
Copy link
Collaborator

@veger veger commented Jun 18, 2024

This is required to fix misplaced elements that are anchored at the right of bottom sides of the window.

I found this while testing the scrollbar #161 that it was not moved down when the window height was resized (dragged).
With this fix the (full) UI is rebuild/recalculated on resize events, causing the scrollable area (of the Summary view for example) to be resized, which in its place causes the scrollbar to be moved with the window bottom as well.

Original behavior:
original

Fixed behavior:
fixed

@veger veger requested a review from shpaass June 18, 2024 10:29
This is required to fix misplaced elements that are anchored at the
right of bottom sides of the window.
@veger veger merged commit 9fba647 into shpaass:master Jun 18, 2024
1 check passed
@veger veger deleted the rebuild-when-resizing branch June 18, 2024 10:56
shpaass pushed a commit to DaleStan/yafc that referenced this pull request Jun 20, 2024
This is required to fix misplaced elements that are anchored at the
right of bottom sides of the window.
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.

2 participants