JFXtras / jfxtras-styles

Java, JavaFX themes or look and feels. Currently contains JMetro theme.
https://pixelduke.com/java-javafx-theme-jmetro/
642 stars 144 forks source link

Scrollpane shrink contents when focused #226

Open mSpoeth opened 1 year ago

mSpoeth commented 1 year ago

Hi there! I'm currently working on a small app and noticed that the scrollpanes, when clicked (focused) shrink their contents, until any other node is clicked (focused). This seems to only occur when I'm using jMetro, as when I comment out the line where I call the setter for the scene of the JMetro object, everything works as it should.

I'm using Java 18 and OpenJFX version 20.

I've uploaded a minimal example to this repository: https://github.com/AsanariAfterDark/MinimalExample

I hope it's nothing obvious I'm missing or a fault of something else, but I've looked at this for a while now and can't make anything of it. Using Scenicview I analyized my app as best as I can do and found nothing useful, but I did notice two small details:

Attached are also two images that show the example app in the default state and when I clicked the left scrollpane.

regular leftPanelClicked