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

[20.09] Bugfix: chrome forgets scroll offset upon show/hide cycle of GTN in Galaxy webhook #10362

Merged
merged 2 commits into from Oct 6, 2020

Conversation

hexylena
Copy link
Member

@hexylena hexylena commented Oct 6, 2020

Some of the discussion in https://stackoverflow.com/questions/4582669/scroll-returns-to-default-after-displaynone-in-chrome-ie indicates that when the display property changes to none and back, that chrome reflows content and scrolls to the top by default, contrary to how firefox behaves.

So this replaces d-none with visibility: hidden in order to make chrome based browsers work as well as firefox.

Content is reflown upon display changes, meaning that in chrome the iframe fails to retain it's original scroll offset. This fixes it by using visibility in place of display, thus preventing a content reflow.
@dannon dannon merged commit ba6ea1b into galaxyproject:release_20.09 Oct 6, 2020
@dannon
Copy link
Member

dannon commented Oct 6, 2020

Thanks for the fix, looks good.

@hexylena hexylena mentioned this pull request Dec 7, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants