royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Rovira <carlosrov...@apache.org>
Subject Layouts and its properties to be set via CSS
Date Fri, 30 Mar 2018 10:42:45 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message