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

Reply via email to