We already attempt to do this, internally, If we encounter an element that
we need to show we create a temporary one and figure out the display type of
that element (and use that, instead).

It should be noted that animating the height or width of a table, in
general, is a bad idea (they behave strangely and generally don't follow
CSS-related conventions very well). Animating a container that holds a table
is probably better.

--John


On Fri, Jul 10, 2009 at 3:33 PM, James An <ja...@jamesan.ca> wrote:

>
> The display CSS property is always set to Block when invoking show()
> or when the element's dimensions are changed (i.e. by setting height
> or width, or by using a show effect like slideDown).
>
> Instead of always settings display to Block to show the element, I'm
> proposing that display be set to the value most appropriate for the
> element. If the element is a table, display should be set to "table".
> This would display the non-block elements more accurately, as they
> would appear without a "display: block" constraint.
>
> For example, tables that go through jQuery show/hide changes are
> displayed as blocks instead of tables, which include a line break
> before and after the table. It's a minor example, but it affects the
> seamless animation that I think jQuery is known for.
>
> I'm aware that neither IE6 nor IE7 support most of the display values,
> but IE8 fully supports all the display values specified by CSS 2.1. I
> don't know if they render as they should though, as IE is known to
> render some things its own way. I suppose a work-around for IE6/7
> would be to continue to setting display as block for everything since
> most other values are unsupported.
>
> Yes/no?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to