【问题标题】:how to set padding for flex spark panel如何为 flex spark 面板设置填充
【发布时间】:2013-11-22 02:01:41
【问题描述】:

我尝试使用 css 样式为面板设置填充,但它不起作用

<fx:Style>
.logo-bar{
    paddingRight: 20px;
}
</fx:Style>
<s:Panel styleName="logo-bar">
    <s:Label>Hello</s:Label>
</s:Panel>

但是同样的样式也适用于 flex 3 面板,我应该如何设置 flex 4 面板的填充?

【问题讨论】:

标签: apache-flex panel flex-spark flex-skins


【解决方案1】:

对于 spark,在布局对象上设置填充。

<s:Panel>
        <s:layout>
            <s:VerticalLayout paddingRight="20"/>
        </s:layout>
</s:Panel>

【讨论】:

    猜你喜欢
    • 2017-04-08
    • 1970-01-01
    • 1970-01-01
    • 2011-03-26
    • 1970-01-01
    • 1970-01-01
    • 2018-06-09
    • 1970-01-01
    • 2016-04-30
    相关资源
    最近更新 更多