royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Ent <>
Subject Re: Layouts and its properties to be set via CSS
Date Fri, 30 Mar 2018 14:24:52 GMT
"IBeadLayout" and friends are not real CSS style properties which means we
can have our own properties. The HorizontalLayoutWithPaddingAndGap should
try to use ValuesManager and get its gap and padding values from the
style(s) associated with the strand component.

SomeComponent {
    gap: 10px;
    padding: 8px;

That should work assuming the layout looks for those if its properties are
not set.

On 3/30/18, 6:42 AM, " on behalf of Carlos Rovira"
< on behalf of> wrote:

>I'm finding a usability problem with layouts. Since Layouts use to be
>configured via CSS (IBeadLayout), this works ok for basic layouts without
>properties, but if you have for example a "gap" property like in
>HorizontalLayoutWithPaddingAndGap, this layout is not usable vía CSS since
>you can't set the "gap" attribute.
>So how can we overcome this issue?
>Maybe If we could write:
>     IBeadLayout: Classreference
>     gap: 10px;
>And gap will be read by the layout...
>if not any layout with properties will be limited to use via MXML
>Maybe I missing some other way to do this?
>Carlos Rovira

View raw message