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 で子要素を管理することは可能ですか?
要素が HBox を満たし、スペースが残らないようにします。
子要素の高さはデフォルトで HBox の高さなので、幅はどうでしょうか。プログラムで幅を計算したくありません。計算が必要ないように、レイアウトがこれを自動的に行う方がよいでしょう。