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

improvement: scroll selected account into view #4137

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Sep 16, 2024

...on initial render, and if needed when changing selection.

@WofWca WofWca mentioned this pull request Sep 16, 2024
14 tasks
WofWca added a commit that referenced this pull request Sep 16, 2024
...on initial render, and if needed when changing selection.

Partially addresses #4137
@WofWca WofWca force-pushed the wofwca/scroll-account-into-view branch from e5416c8 to b67fffe Compare September 16, 2024 15:49
// based on that, and whether it is displayed or not determines the
// scrollHeight of the accounts list, so we want to make sure
// to scroll after it gets displayed.
// TODO refactor: maybe just use `ResizeObserver`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also sounds good because users may change the height of the window and thus scroll the selected account out of view.

Copy link
Member

@Simon-Laux Simon-Laux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works

...on initial render, and if needed when changing selection.

Partially addresses #4137
@WofWca WofWca force-pushed the wofwca/scroll-account-into-view branch from b67fffe to 7d92739 Compare September 18, 2024 06:59
@WofWca WofWca merged commit 46d9811 into main Sep 18, 2024
7 checks passed
@WofWca WofWca deleted the wofwca/scroll-account-into-view branch September 18, 2024 07:00
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