我已经创建了一个自定义布局并应用下面给出的代码:
<mx:Accordion x="10" y="10" width="292" height="417">
<s:NavigatorContent width="100%" height="100%" label="Electronics Symbols">
<s:Scroller x="0" y="0" width="200" height="300">
<s:Group width="100%" height="100%">
<s:layout>
<local:gridLayout/>
</s:layout>
<inductors:Inductor mouseDown="mouseDown(event)"/>
<inductors:IronCoreInductor mouseDown="mouseDown(event)"/>
<inductors:LongInductor mouseDown="mouseDown(event)"/>
<inductors:VariableInductor mouseDown="mouseDown(event)"/>
`
这里gridLayout是我的自定义布局。当我使用flex布局时,滚动条可以工作但是在这个布局上它不起作用。
答案 0 :(得分:0)
只需要在NavigatorContent下包装你使用的任何组件。