JFXtras / jfxtras-styles

Java, JavaFX themes or look and feels. Currently contains JMetro theme.

Home Page:https://pixelduke.com/java-javafx-theme-jmetro/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scrollpane shrink contents when focused

mSpoeth opened this issue · comments

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:

  • While a scrollpane is focused it's using different bounds than before.
  • A child node that is disabled stays the correct size and doesn't shrink.

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

regular
leftPanelClicked