Greg Stepniewski
11/01/2017, 7:55 PMcenter {
stackpane {
imageview(controller.image) {
isPreserveRatio = true
this@center.heightProperty().onChange { fitHeight = it - this@borderpane.top.layoutBounds.height }
this@center.widthProperty().onChange { fitWidth = it }
}
}
}
It's incredibly ugly and I have no idea why center would give me the full height of the borderpane, but it seem to work for now...