I use Scene Builder 1.1.
I added ImageView
with Image
on AnchorPane
, and i want it resizes together, but point "resize"
in the ImageViews
properties is inactive.. as the result all controls which are on the ImageView dont resize too.. Didt find answer, despite questions are ease..
问问题
1915 次
2 回答
2
You could also try binding the ImageView fitWidth/Height property to the anchor pane width and height:
AnchorPane pane = new AnchorPane();
ImageView view = new ImageView();
view.fitWidthProperty().bind(pane.widthProperty());
view.fitHeightProperty().bind(pane.heightProperty());
- chooks
于 2013-10-01T18:29:06.187 回答
0
You will have to create your own listener for when the parent pane is resized, and then implement the resizing of the imageview on that listener.
于 2013-10-01T11:06:28.127 回答