flex4 spark 布局

    xiaoxiao2021-03-26  34

    四种Flex4布局:

    1.BasicLayout

    (默认属性,当不指定定位left,right,top,bottom后,则是绝对定位布局)

    2.HorizontalLayout

    spark组件库里面的水平布局方式

    3.VerticalLayout

    spark组件库里面的垂直布局

    4.TileLayout

    spark组件库新增的布局方式,即格子布局(类似table),HorizontalLayout和VerticalLayout结合的方式

    还有一点是需要注意的:

    paddingLeft、paddingRight、paddingTop、paddingBottom 这四个属性已经转移到了HorizontalLayout、VerticalLayout里面。这点也与FlexSDK3有些区别。也就是说,在spark组件中的容器,已经不具备paddingLeft、paddingRight、paddingTop、paddingBottom属性了。

    left ,right ,top,bottom 定位除了BasicLayout布局中,其他布局中,无法使用。

    基于行列的约束

    ConstraintColumn ConstraintRow

    转载请注明原文地址: https://ju.6miu.com/read-660379.html

    最新回复(0)