Set max size for ImageView
2 answers
May not be too topical, but I found a solution that works for me at least:
- set the setPreserveRatio parameter to true,
- set fitHeight to desired max width * ratio
- bind the fitWidthProperty property to screnes widthProperty
In other words: you can snap one dimension and have a maximum fit to another at the same time.
0
source to share