ViewStack 内の他のコンポーネント (つまり vBox) と一緒にリピーターを使用して、ViewStack を作成するときに問題が発生します。リピーターはビューの下部に配置されます。リピーターは他のコンポーネントの前にリストされていますが、一番下に配置されています。
他のコンポーネントの前にリピーターを描画できる回避策はありますか?
私はこれをグーグルで検索し、他の誰かが別のサイトで同じ質問をしましたが、誰も答えませんでした. 彼らの投稿からサンプルコードを貼り付けています。リピーターは最後に描画されます。
ありがとう
次に例を示します。
<mx:ViewStack id="viewStack" width="100%" height="100%" backgroundColor="#FFFFFF"
backgroundAlpha="1" paddingLeft="5" paddingRight="5" paddingBottom="5">
<mx:Repeater id="editorsRP" dataProvider="{dynamicFields}"
repeatEnd="organizeViewStack();" width="100%" height="100%">
<editor:DynamicFieldEditor label="{FieldGroup(editorsRP.currentItem).name}"
width="100%" height="100%" fields="{FieldGroup(editorsRP.currentItem).fields}" dataProvider="{details}" />
</mx:Repeater>
<editor:NotesEditor id="notesEditor" width="100%" height="100%" label="Notes"
enabled="false" notesProvider="{attachment}" />
</mx:ViewStack>