Hi Carlos, But " verticallayout" - This is AS class ?
2018-03-30 13:19 GMT+02:00 Carlos Rovira <[email protected]>: > Another problem I found with layouts usability: > > If I have a component that uses by default an horizontal layout: > > ControlBar > { > IBeadLayout: Classreference ("horizontallayout"); > } > > But this component is used in other component that wants to use another > layout (i.e vertical) > > I tried this: > > .alert j|ControlBar > { > IBeadLayout: Classreference ("verticallayout"); > } > > and this: > > j|Alert j|ControlBar > { > IBeadLayout: Classreference ("verticallayout"); > } > > but both options are not valid > > Some other way to do this? or this is not possible? > > > 2018-03-30 12:42 GMT+02:00 Carlos Rovira <[email protected]>: > > > Hi > > > > 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: > > > > SomeComponent > > { > > IBeadLayout: Classreference ("some.layout.with.properties. > > that.need.to.be.set"); > > 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 > > http://about.me/carlosrovira > > > > > > > -- > Carlos Rovira > http://about.me/carlosrovira > -- Piotr Zarzycki Patreon: *https://www.patreon.com/piotrzarzycki <https://www.patreon.com/piotrzarzycki>*
