Element#show() bug
Reported by Douwe M. | January 4th, 2010 @ 12:26 AM | in 1.5.3 Release
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.
Comments and changes to this ticket
-

Douwe M. January 4th, 2010 @ 12:50 AM
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(); @@@ -

MadRabbit January 8th, 2010 @ 09:52 PM
- State changed from new to resolved
-

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.