我遇到了一些clipAndEnableScrolling的問題,它對父母有固定高度時VGroup的工作正常,但如果父母沒有固定高度,那麼它不起作用,內容溢出。例如:clipAndEnableScrolling父級沒有固定高度?
<s:TitleWindow width="500" height="500">
<s:VGroup width="100%">
<s:Group width="100%">
<!-- The content in here changes height based on the state, I won't complicate this example with the details -->
</s:Group>
<s:Group width="100%" clipAndEnableScrolling="true">
<s:Scroller height="100%" width="100%">
<s:DataGroup dataProvider="{someData}" width="100%">
<s:layout>
<s:VerticalLayout gap="1"/>
</s:layout>
</s:DataGroup>
</s:Scroller>
</s:Group>
</s:VGroup>
</s:TitleWindow>
這是一個人爲的例子,但問題是,我不知道提前第一批的HIGHT所以不能設置在第二組的高度,也是在組件現實比上面這個人爲的例子複雜得多,所以我不想爲了計算第二組以上的所有事情而進行任何形式的體操。
誰能告訴我如何獲得第二組滾動條?
乾杯,
克里斯