Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个具有固定宽度和高度以及边框的 HBox。在那个 HBox 中,我有一个带有几个不同视图的 viewStack。当 viewStack 更改视图时,我希望 HBox 容器继续调整其内容的大小。目前它保持在固定宽度。有没有办法通过 HBox 设置来做到这一点?
您必须删除 HBox 上的所有尺寸。所以删除任何width或percentWidth属性。还要确保您ViewStack首先调整大小。
width
percentWidth
ViewStack
我自己没有这样做,但这里有一些可能会有所帮助的链接: