FXSkins icon indicating copy to clipboard operation
FXSkins copied to clipboard

Conscious ScrollPane shifted over

Open vewert opened this issue 3 years ago • 1 comments

I'm not sure if this is the same as https://github.com/dukke/FXSkins/issues/3 or not, but since it is not related to drag 'n drop, I am logging this as a new issue.

When using a scrollpane, the scroll bar (e.g the vertical scroll bar), is not sitting on the edge of the view, but is instead shifted in from the edge and overlapping with other components in my view:

image

If I turn FXSkins off it looks like this:

image

which is as expected.

In the documentation, it mentions using padding. I tried that, and I can shift my content far enough away that it doesn't get overlapped, but it still look bad that the scrollbar is so far from the edge of the view.

I'm not sure if it matters, but this is happening inside a Dialog.

If there is not a way to fix it, is there a way to disable the Conscious Scroll Pane, but keep other FXSkins features?

Thanks for your help!

Environment: OS: Windows 10 Java: 17.0.2 JavaFX: 17.0.2

vewert avatar Jan 28 '22 01:01 vewert

Hi @vewert

Sorry for the late reply but I've been very busy with my day to day work.

Can you please attach a simple example program where this bug happens (please cut out any unnecessary code as much as you can) so that I can test this.

You can disable counscious scrollpane by setting the skin of a specific scrollpane to the javafx default scrollpane skin. You can do this through CSS or code.

Thanks!

dukke avatar Aug 26 '22 00:08 dukke