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

[Theming] Vertical scrollbars disappear when scrolled down #405

Closed
goodwilling opened this issue Aug 29, 2022 · 13 comments
Closed

[Theming] Vertical scrollbars disappear when scrolled down #405

goodwilling opened this issue Aug 29, 2022 · 13 comments
Assignees
Labels
6.5 - Jade Release 6.5 - 2022.H2

Comments

@goodwilling
Copy link

Version of Radiance (latest development is 6.0-SNAPSHOT)

6.0-SNAPSHOT

Sub-project (Common, Animation, Theming, Component, ...)

Theming

Version of Java (current minimum is 9)

Java 17

Version of OS

Windows 10

The issue you're experiencing (expected vs actual, screenshot, stack trace etc)

The vertical scrollbars, either for a JTable or for a JTextPane, disappear when they are scrolled down. Horizontal scroll bars are of no problem. It seems that the vertical scrollbars move horizontally if scrolled down.

@kirill-grouchnikov
Copy link
Owner

I'm not seeing this in the main radiance demo. Do you have a small reproducer for this?

@goodwilling
Copy link
Author

Sorry, I do not have a small reproducer for this problem. BTW, this problem is also observed on RedHat Linux 9.

@kirill-grouchnikov
Copy link
Owner

Not much I can do without being able to look at a reproducer, unfortunately.

The relevant code that applies a rotation affine transform to draw a vertical scrollbar thumb is here. There might be something that is applying another affine transform somewhere else, either in Radiance or in your app, but I can't really say without being able to debug that part.

@kirill-grouchnikov
Copy link
Owner

Do you have, perhaps, a custom skin or custom Radiance painters in your app?

@goodwilling
Copy link
Author

I do not have a custom skin or custom Radiance painters in my app. Since this problem was not seen using the radiance theming of the version Jan-2022, I wonder what causes this problem when using a different version.

@kirill-grouchnikov
Copy link
Owner

There's been a lot of changes in version 6.0 for direct rendering of all components without using intermediate off-screen images.

@kirill-grouchnikov
Copy link
Owner

This is not something that I can fix in the dark without being able to reproduce it locally, either in the (modified) Radiance test app, or a standalone test.

@gLuEcKsKrAuT
Copy link

This issue can be reproduced with
org.pushingpixels.radiance.demo.theming.main.Check
or the attached example.

Tested with
radiance 6.0.1 / java17 / win10

VerticalScrollBarBug.java.txt

@kirill-grouchnikov
Copy link
Owner

Not seeing this on a macOS with Java 9 or Java 17. Is this issue only happening for you on Windows 10?

@gLuEcKsKrAuT
Copy link

For the moment it seems so.

vertical_scroll_bar

@kirill-grouchnikov
Copy link
Owner

Looks like this is a non-hi dpi display. Maybe there's a different code path in there somewhere that depends on the scale factor.

@gLuEcKsKrAuT
Copy link

Display is a Asus PG258Q.
If you need more information, let me know.

@kirill-grouchnikov kirill-grouchnikov changed the title Vertical scrollbars disappear when scrolled down [Theming] Vertical scrollbars disappear when scrolled down Sep 16, 2022
@kirill-grouchnikov kirill-grouchnikov self-assigned this Sep 16, 2022
@kirill-grouchnikov kirill-grouchnikov added the 6.5 - Jade Release 6.5 - 2022.H2 label Sep 16, 2022
@gLuEcKsKrAuT
Copy link

gLuEcKsKrAuT commented Sep 16, 2022

works fine with 6.5-SNAPSHOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.5 - Jade Release 6.5 - 2022.H2
Projects
None yet
Development

No branches or pull requests

3 participants