I'm trying to figure out how to make a :fx/type :scroll-pane
scroll to the bottom (`:vvalue 1.0`) whenever a new child is added to the :children
of the :fx/type :v-box
that is the value of the scroll-pane's :content
. Could somebody please advise?
@jrwdunham my solution so far
the idea is to just force scroll pane scroll to bottom whenever its viewport bounds change — this happens when nodes are added.
this might be a problem if nodes inside the scroll pane can be resized themselves, I don't have anything better in my mind right now. I tried to go with observing content's children list, but that seemed to update scroll too early, so it first scrolled to bottom and then updated the scroll pane...