我想将多个列表放在一个滚动器中(每个列表都不可滚动)。我在下面所做的工作,但每个列表之后都有一个巨大的随机差距。我检查了 renderers.Pending 并没有造成差距。我注意到它只有在我将verticalScrollPolicy 设置为关闭时才会发生。我不想将其设置为 on,否则列表本身将是可滚动的。
<s:Scroller height="80%" width="100%">
<s:VGroup width="100%">
<s:Label bottom="5" width="100%" styleName="normalWhite" text="Heading 1" textAlign="left" fontSize="18" />
<s:List id="pendingList1"
width="100%"
includeIn="pending"
dataProvider="{Info}" contentBackgroundAlpha="0"
itemRenderer="renderers.Pending"
styleName="customList" alternatingItemColors="[#13237d]"
selectionColor="#009de0"
dragEnabled="false"
dragMoveEnabled="false"
dropEnabled="false"
verticalScrollPolicy="off">
<s:layout>
<s:VerticalLayout horizontalAlign="justify" gap="1"/>
</s:layout>
</s:List>
<s:Label bottom="5" width="100%" styleName="normalWhite" text="Heading 2" textAlign="left" fontSize="18" />
<s:List id="pendingList2"
width="100%"
includeIn="pending"
dataProvider="{Info}" contentBackgroundAlpha="0"
itemRenderer="renderers.Pending"
styleName="customList" alternatingItemColors="[#13237d]"
selectionColor="#009de0"
dragEnabled="false"
dragMoveEnabled="false"
dropEnabled="false"
verticalScrollPolicy="off">
<s:layout>
<s:VerticalLayout horizontalAlign="justify" gap="1"/>
</s:layout>
</s:List>
</s:VGroup>
</s:Scroller>