in MDL "percentages" and things like "left" works ok, but seems that in
normal HMTL not.
So I'll remove that position relative only in MDL library

2016-11-14 18:48 GMT+01:00 Alex Harui <aha...@adobe.com>:

>
>
> On 11/14/16, 9:39 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
> <carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com>
> wrote:
>
> >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?
>
> I'm pretty sure I added forcing of position to fix a bug.  We'd have to
> find the scenario and show there is another solution.  I'm sure there are
> scenarios where you don't have to have it, but my understanding is that
> there are scenarios where you do.
>
> I'll add it to my list of things to look at.  IIRC, it isn't that you can
> swap position:relative for width:50% on the same HTMLElement, it is that
> if you have a nest of elements
>
>   <div>
>      <div>
>         <input width="50%" />
>
> The div's computed width is 0 or something like that so input gets 0
> width.  Or maybe it was that left/right doesn't work without
> position:relative or position:absolute on the parent containers.
>
> You could try building and running every example and compare with and
> without position:relative.
>
> -Alex
>
>


-- 

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