Isn't that just: `height = Math.min(visualBounds.h...
# tornadofx
e
Isn't that just:
height = Math.min(visualBounds.height, image.height)
?