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

Expand frame on single click #248

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Expand frame on single click #248

wants to merge 23 commits into from

Conversation

bric3
Copy link
Owner

@bric3 bric3 commented May 22, 2024

Screen.Recording.2024-05-22.at.18.38.17.mov

bric3 added 19 commits May 22, 2024 14:28
This change, updates both the scrollbar policy and the visibility.
Computes the dimension as if a vertical scrollbar was needed.

Otherwise, the layout can enter a loop:
Because the view port width is called once with full width,
which computes a canvas with a taller dimension than viewport.
This triggers the horizontal scrollbar to be added, which
triggers another layout.
In this layout, the view port width is shorter by the scrollbar width,
which makes the canvas fitting in the view port,
which then triggers annoter layout that removes the vertical scrollbar,
and then starts again.

Note the scrollbar visibility is updated at the end of this control block
Fixes a jittering rendering when the viewport height was higher than
flamegraph height
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