Skip to main content

Bug Tracker

Side navigation

#5194 closed bug (duplicate)

Opened September 09, 2009 11:50PM UTC

Closed October 04, 2010 09:37PM UTC

toggle() doesn't preserve element's display attribute

Reported by: yacoob Owned by:
Priority: major Milestone: 1.4
Component: effects Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

I have a <div> that has its 'display' attribute set to 'table-cell', via CSS. Upon calling jQuery's toggle() on that element, it gets hidden with 'display: none'. After calling toggle() once more, it ends up with 'display: block' which obviously blows up the layout.

Looks like a bug.


Attachments (0)
Change History (2)

Changed July 22, 2010 06:49PM UTC by dcwood comment:1

Similar for a <span>. It changes the <span> display attribute to display:block after toggle used to return visibility. However, THIS ONLY HAPPENS if the animation duration is used. If no arguments are supplied to toggle, it seems to work correctly.

Changed October 04, 2010 09:37PM UTC by snover comment:2

resolution: → duplicate
status: newclosed

Duplicate of #2185.