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

Browser controls in tabs lose scroll position in Chromium based browers #164

Open
sbo1988 opened this issue Jan 23, 2024 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@sbo1988
Copy link

sbo1988 commented Jan 23, 2024

First of all, I would like to clarify that this is not a bug report, but a request to implement a workaround for Chromium based browsers so that browser controls behave as they do in all other browsers.

In our RAP application, we have several use cases for editing and checking documents. Servlets intended for this purpose are opened in browser controls (iframes). The documents are typically longer and do not fit on one screen, so they are rendered with scrollbars. If you have several tabs with such iframes and switch from one to another, the previously displayed iframe is hidden with display:none.

A Chromium bug occurs here, which causes the hidden iframe to lose its scroll position information. Unfortunately, the bug report has been open for a long time and it seems unclear whether this bug will ever be fixed.

However, a comment mentions as a workaround that visibility:hidden could be used instead of display:none so that the scroll position is retained.

We would therefore like to suggest implementing this workaround in RAP, possibly as an option, so that browser controls behave in the same way in all common browsers regarding scroll positions.

@mknauer
Copy link
Contributor

mknauer commented Jan 23, 2024

Sounds interesting...
@sbo1988, would you mind creating a pull request for that?

@sbo1988
Copy link
Author

sbo1988 commented Jan 26, 2024

I'm sorry, but we lack the necessary experience for the development of Eclipse RAP. We have not yet looked into it and presumably more needs to be considered than just replacing "display: none" with "visibility:hidden" in the right place.

@mknauer mknauer added the enhancement New feature or request label Mar 13, 2024
@mknauer mknauer changed the title Enhancement: Browser controls in tabs lose scroll position in Chromium based browers Browser controls in tabs lose scroll position in Chromium based browers Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants