問題タブ [flex2]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
apache-flex - フレックスでコンポーネント(HBOX)の幅を動的に設定する方法
HBOX を拡張するカスタム コンポーネントがあります。VBOX と「HBOX」をその子として追加しています。VBOX には、コンポーネントのタイトルとして機能するラベルがあり、特定のイベントで動的に「HBOX」にリンク ボタンのペアを追加/削除します (ボタンの可能性があります)。クリック)。
親 HBOX の幅は、リンク ボタンが動的に追加/削除されるたびに拡大/縮小する必要があります。同じの計算方法はわかりません。