Skip to content

Scrollpane shrink contents when focused #226

@kathanaddaeus

Description

@kathanaddaeus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions