This repository has been archived by the owner on Sep 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 269
ScrollPane: issue #1298
Comments
It works for me when you wrap your three vboxs in a parent container like a vbox. Scrollpane is intended to wrap a single node or layout, so when you keep adding vboxes it is just replacing what was there. This is probably done by repeated calls to a ScrollPanes
|
You are right, i also tried encapsulating content in a vbox and it worked. If this is the intended use of scrollpane maybe it's ok but maybe it will be a nice improvement if TornadoFX handles this for the user (perhaps in an optional way) |
can better use
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, it seems that when a scrollpane has some children that can be hidden/shown based on some property only the last child is considered.
Example code:
If you run this example i'd expect that the first component is visibile and then, based on the radiobutton that i select, the appropriate component is shown but all seems to work only for the last child of the scrollpane.
I'm not really an expert in kotlin (i usually program in plain java or groovy) and i don't have a lot of experience with JavaFX either so i don't know if i'm doing something wrong but maybe this is a bug in how the children gets added to the scrollpane itself
The text was updated successfully, but these errors were encountered: