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
Wrong UI calculation for horizontal scrollbars since Chrome 105 #53
Comments
Just updated to Chrome 105 and I can't reproduce it with our Controls Demo and with Workbench Demo (business theme). I'll give your snippet a try when I have time |
I'm sorry, I should have mentioned that. I already tried to reproduce it in the Controls and Workbench Demo but couldn't find a similar place. And maybe the problem doesn't affect all ScrolledComposites but only ScrolledForms (as used in my example). |
@ifurnadjiev I'm more than willing to debug this problem in order to provide a possible solution for the issue. |
Probably you can debug it by inspecting (in Chrome dev tools) first the horizontal scrollbar div height. The client-side handling of the ScrolledComposite is done in Scrollable.js where the two scrollbars are positioned. |
Is the .css file the only difference in the mail demo? Probably some CSS definitions in the business.css are not updated accordingly. |
Here is a link to the demo projekt (only available for 7 days): https://we.tl/t-IbvuSW8pqU Otherwise here the description what I did to the mail template projekt: The mail template doesn't have the required editor (to reproduce the problem). I've integrated all the classes above in the corresponding packages, extended the plugin.xml by the following:
Changed the entrypoints definition to use the branding:
And you have to add the business.css as well as the required 'img' and 'theme/resources' folders from the mentioned .jar file. To open the editors I changed the 'OpenViewAction' to open my TestEditor instead of the default one. |
I can reproduce it with the provided test project. I'll investigate it when the time permits. |
Thanks a lot, I'm looking forward to it. |
For Chrome/WebKit-based browsers use pseudo selector "-webkit-scrollbar" to specify width/height of the scrollbar. For Firefox use the new CSS "scrollbar-width" property (defined in the current CSS draft specification) with value "none". The above properties do not affect the scroll behaviour, just make native scrollbars invisible. Fix #53
Thanks alot for the quick fix! I really appreciate it. |
@ifurnadjiev how can anyone get it on custom components ? as I have html base custom components and all scrollbars is gone now ? can I use some style to get back default like before inside custom component div ? |
@theanuradha as the fix for this issue is just pure CSS, you can always change these values to fulfill your needs. |
@ifurnadjiev what should I use Im trying but it not get me the native scroll inside div |
@ifurnadjiev how can I remove this globally or provide custom rwt-index.html |
Use HEAD HTML with custom CSS to override default settings globally: |
@ifurnadjiev When use HEAD_HTML it go before |
this is what I set to HEAD_HTML
|
You can also use org.eclipse.rap.rwt.client.service.ClientFileLoader.requireCss(String) to load CSS at runtime. |
@ifurnadjiev ClientFileLoader.requireCss helps with load order but it not override and bring native scroll EG: if I use browser tools to remove original properties then only it show native |
The problem came from the values that you set. You keep width/height to 0. |
@ifurnadjiev what I should do to set to native default ? |
Since Chrome 105 (same with Edge 105), as soon as a horizontal scrollbar appears, the UI assigns clicks to the scrollbar not only for the place where the scrollbar actually is present, but also for an area of about the same size below. I've included an example below. We can always reproduce it with the ScrolledForm of a FormPage.
In this screenshot, all the yellow area is actually handling the scrollbar. I only have a small area at the bottom of the pages where I can switch to one of the other pages.
Info:
Here an example how we can reproduce the problem with as little code as possible:
Editor Input
Editor
Page
The text was updated successfully, but these errors were encountered: