Hello
I try to implement a zoomIn and zoomOut function on a Scrollpane including an ImageView. Now i have the following Problem: I don't have any limits when zooming or paning. How can I implement borders to my scrollpane. I'd like to define borders around the image.
Screenshot as an example of the problem:
What I like to have: The picture shoud fit my window.
Can anyone help me with this? Code is in the appendix.
Thanks
I try to implement a zoomIn and zoomOut function on a Scrollpane including an ImageView. Now i have the following Problem: I don't have any limits when zooming or paning. How can I implement borders to my scrollpane. I'd like to define borders around the image.
Screenshot as an example of the problem:
What I like to have: The picture shoud fit my window.
Can anyone help me with this? Code is in the appendix.
Thanks