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

Scrollpane shrink contents when focused #226

Open
mSpoeth opened this issue May 11, 2023 · 0 comments
Open

Scrollpane shrink contents when focused #226

mSpoeth opened this issue May 11, 2023 · 0 comments

Comments

@mSpoeth
Copy link

mSpoeth commented May 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant