Comments (22)
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
from org.eclipse.rap.
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).
from org.eclipse.rap.
@ifurnadjiev I'm more than willing to debug this problem in order to provide a possible solution for the issue.
To avoid spending hours after hours in the wrong place, could you please give me a hint where to look?
from org.eclipse.rap.
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 it possible to create a self-running project to demonstrate the issue?
from org.eclipse.rap.
While debugging in Chrome I thought I'd found the problem. (I had a scroll area with a bottom position of -17 and a height of 708 Pixels, as soon as I changed the bottom position to 0 and the height to 691 Pixels it worked as excepted). But I found out that calculation was the same in Chrome 104 and there it worked quite fine.
So I prepared a simple Projekt based on the 'RAP Mail Template' using the classes above. It turned out, the key to the problem is that it only occurs when I'm using the business.css from org.eclipse.rap.design.example_3.22.0.20220617-1351.jar.
Do you want me to upload the sample projekt somewhere or do you prefer to reproduce it with the business.css yourself?
from org.eclipse.rap.
Is the .css file the only difference in the mail demo? Probably some CSS definitions in the business.css are not updated accordingly.
Please upload the demo project somewhere in order to get it from there.
from org.eclipse.rap.
Here is a link to the demo projekt (only available for 7 days): https://we.tl/t-IbvuSW8pqU
(edit 2022-09-19 @mknauer : attached ZIP archive from the above link as Issue 53.zip)
After starting the webapp you have to klick on the '+' icon to open the editors with the horizontal scrollbars to reproduce the problem:
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:
<extension
point="org.eclipse.ui.editors">
<editor
class="test.TestEditor"
default="false"
id="test.TestEditor"
name="Test (NON-NLS)">
</editor>
</extension>
<extension
point="org.eclipse.rap.ui.themes">
<theme
file="theme/business.css"
id="test.theme"
name="Theme (NON-NLS)">
</theme>
</extension>
<extension
point="org.eclipse.rap.ui.branding">
<branding
id="test.branding"
themeId="test.theme"
title="test">
<additionalHeaders>
<meta name="robots" content="noindex, nofollow, noarchive, nocache, nosnippet" />
</additionalHeaders>
</branding>
</extension>
Changed the entrypoints definition to use the branding:
<extension
id="mailapp.entrypoints"
point="org.eclipse.rap.ui.entrypoint">
<entrypoint
applicationId="Issue_53.mailapp"
brandingId="test.branding"
id="mailapp.entrypoint"
path="/mail">
</entrypoint>
</extension>
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.
from org.eclipse.rap.
I can reproduce it with the provided test project. I'll investigate it when the time permits.
from org.eclipse.rap.
Thanks a lot, I'm looking forward to it.
from org.eclipse.rap.
Thanks alot for the quick fix! I really appreciate it.
from org.eclipse.rap.
@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 ?
from org.eclipse.rap.
@theanuradha as the fix for this issue is just pure CSS, you can always change these values to fulfill your needs.
from org.eclipse.rap.
@ifurnadjiev what should I use Im trying but it not get me the native scroll inside div
from org.eclipse.rap.
from org.eclipse.rap.
@ifurnadjiev how can I remove this globally or provide custom rwt-index.html
from org.eclipse.rap.
Use HEAD HTML with custom CSS to override default settings globally:
https://github.com/eclipse-rap/org.eclipse.rap/blob/main/examples/org.eclipse.rap.examples/src/org/eclipse/rap/examples/internal/ExampleApplication.java#L35
from org.eclipse.rap.
@ifurnadjiev When use HEAD_HTML it go before
from org.eclipse.rap.
this is what I set to HEAD_HTML
+ " div::-webkit-scrollbar {\n"
+ " width: unset;\n"
+ " height: unset;\n"
+ " }\n"
+ " div {\n"
+ " scrollbar-width: unset;\n"
+ " }\n"
+ " </style>"````
from org.eclipse.rap.
You can also use org.eclipse.rap.rwt.client.service.ClientFileLoader.requireCss(String) to load CSS at runtime.
from org.eclipse.rap.
@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
from org.eclipse.rap.
The problem came from the values that you set. You keep width/height to 0.
from org.eclipse.rap.
@ifurnadjiev what I should do to set to native default ?
from org.eclipse.rap.
Related Issues (20)
- Retry on connection error doesn't work with CSP enabled
- Handling network connection error with SeverPush active HOT 7
- Missing requirement: org.eclipse.rap.rwt.osgi 3.22.0.20220708-1200 requires 'java.package; javax.servlet [4.0.0,5.0.0)' but it could not be found HOT 3
- RAP version which support jboss8 and openjdk17 HOT 7
- Ampersand character ommited from label text HOT 1
- selection in not yet focused multiline Text widget HOT 2
- CSRF security HOT 2
- Focus issues with ContextMenu in Chrome/Edge browser
- pack column for Tableviewer
- Copy of photo is stored on server and never cleaned up
- Grid calculates row height only on Hover
- GridEditor displayed at wrong offset for auto-height rows HOT 6
- Methods annotated with @PersistState have no effect on the saved model XMI in RAP HOT 4
- ConcurrentModificationException in LifeCycleServiceHandler HOT 3
- Client sometimes doesn't re-layout on browser window size change HOT 4
- TypeError when POST fails causes error-dialog is not shown HOT 3
- No jface.databinding.swt.typed package? HOT 22
- Mouse up / down event not triggering on table header click or select HOT 7
- Improve deployment of realease artefacts to Maven Central
- Wrong handling error in ServerPush.js / Connections.js HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org.eclipse.rap.