【问题标题】:Scroller not work under custom layout in flex滚动条在 flex 中的自定义布局下不起作用
【发布时间】:2013-01-24 08:18:07
【问题描述】:

我创建了一个自定义布局并应用如下代码:

 <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 布局时,滚动条可以工作,但在这个布局上它不起作用。

【问题讨论】:

  • 尝试在群组上设置 clipAndEnableScrolling="true"

标签: actionscript-3 apache-flex flex4.6


【解决方案1】:

只需要在 NavigatorContent 下包含您使用的任何组件。

【讨论】:

  • 我如何包装?你有问题吗?
猜你喜欢
  • 2019-11-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-06-05
  • 1970-01-01
  • 1970-01-01
  • 2017-02-09
  • 2016-12-26
相关资源
最近更新 更多