Hi Alex,

just tried to remove in my mdl Card component the position:relative and in
example I use width="50%"
The component is working ok and resizing as I resize the browser window.

So, if this is the proposit, I think we could remove the line
positioner.style.position
= 'relative';
in all components

is this ok for you?




2016-11-13 7:21 GMT+01:00 Alex Harui <aha...@adobe.com>:

> FlexJS containers set position:relative or position:absolute because I
> think you need to do so in order to get percentWidth/percentHeight to
> work.  If there is a way to solve all scenarios without that, or a way to
> be even smarter about when to set position I'd be interested.  I think
> your app may not be relying on percentages?
>
> -Alex
>
> On 11/12/16, 10:26 AM, "carlos.rov...@gmail.com on behalf of Carlos
> Rovira" <carlos.rov...@gmail.com on behalf of carlosrov...@apache.org>
> wrote:
>
> >Hi,
> >
> >all HTML FlexJS components use to have the line:
> >
> >positioner.style.position = 'relative';
> >
> >this translates to the HTML output as
> >
> >style="position: relative;"
> >
> >For example, in MDL the original examples has no position set so it uses
> >its default (static). I think we should do the same since don't see the
> >benefits of setting all components to position: relative.
> >
> >I removed in all MDL comps this line, and results are the same, and an
> >html
> >output more close to original examples I'm replicating.
> >
> >In case folks wants relative position, I think this should be a particular
> >case, since is more easy to set the default set without this property set
> >and make people wanting that to set in its own component set or
> >configuration.
> >
> >What do you think?
> >
> >
> >--
> >Carlos Rovira
> >http://about.me/carlosrovira
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Reply via email to