Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Element#show() bug

#158

Running #show() on an already shown (ie. never hidden) <p> (or <form>, etc.) element applies display: inline to it, because it assumes only <div>s are always automatically display: block.
This bug also causes Fx.Slide() not to work on <p> (or <form>, etc.) elements, because Fx.Morph()ing the height or width requires display to be set to block, which it isn't anymore after #show() has been called on this element.

Reported by Douwe M. · January 4th, 2010 @ 12:26 AM

State: resolved
Milestone: 1.5.3 Release
Assigned to: nobody

Activity

  1. Douwe M.
    Douwe M.

    You can currently get around this by running this code for block level elements that are supposed to be shown (display:block;) onLoad, but aren't <div>s:
    @@@ element.hide().show(); @@@

    Or this for elements that should be hidden (display: none;) onLoad:
    @@@ element.setStyle('display', 'block').hide(); @@@

    January 4th, 2010 @ 12:50 AM

  2. MadRabbit
    MadRabbit
    • State changed from new to resolved

    January 8th, 2010 @ 09:52 PM

  3. MadRabbit
    MadRabbit
    • Milestone set to 1.5.3 Release

    January 10th, 2010 @ 02:07 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.