I am currently using JavaFX Pane
and have a ball class (an Imageview
) within it that I want to bounce off the edges of it like is detailed here however the minX
of the Pane seems to get smaller as the ball goes off the edge of it.
It seems the Pane
resizes to fit all the nodes added to it, meaning I can't ever check if the ball goes off the left side of the Pane
. Is there a way to prevent this resizing or a better way to check the edges of the Pane?