Skip to main content

Bug Tracker

Side navigation

#11593 closed bug (invalid)

Opened April 15, 2012 05:48PM UTC

Closed April 30, 2012 08:18AM UTC

Last modified April 30, 2012 08:54AM UTC

Error using toggles

Reported by: jinsa85@hotmail.com Owned by: jinsa85@hotmail.com
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

If you toggle, and before the toggle ends you toggle a second time, the element maintains style elements such as the height style.

If this element at the beggining had no value for height attribute, it must be automatically calculated by the explorer. After this two toggles, this height value is no longer automatically calculated by the explorer, because it maintained a new height style value that should not be there.

After all this, if you display or hide elements inside the toggled element, then the toggled element will not resize automatically its height, because its style has now a fixed height value.

After doing the two toggles, the element should delete these temporal styles.

If i you want a visual example of this phenomenon, feel free to contact with me.

Attachments (0)
Change History (3)

Changed April 15, 2012 06:08PM UTC by sindresorhus comment:1

owner: → jinsa85@hotmail.com
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

Changed April 30, 2012 08:18AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Changed April 30, 2012 08:54AM UTC by anonymous comment:3

They send me an email telling that I didn't replied to something, but no one asked me for nothing.

I repeat the problem, there is a bug in the toggle function, it mantains some temporal style properties (such as height) when it is executed twice. The second time must be executed before the first time is finished to see the error.