How does bound in local and bound in parent works in AnchorPane and StackPane?

北城以北 提交于 2019-12-24 04:19:32

问题


This question is an extension of the below question:

How to implement collision detection on nodes which are in StackPane (in JavaFX)?.

After implementing the answer given in the above question it seems bound in local and bound in parent are same in AnchorPane but they are different in StackPane.

Please let me know the actual behaviour of the bounds of a node with respect to AnchorPane and StackPane.

来源:https://stackoverflow.com/questions/21430787/how-does-bound-in-local-and-bound-in-parent-works-in-anchorpane-and-stackpane

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!