Closed Bug 624524 Opened 14 years ago Closed 14 years ago

<detail> collapse animation looks wonky

Categories

(support.mozilla.org :: Knowledge Base Software, task, P2)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: erik, Assigned: erik)

Details

In 2.4, the entirety of the <details>'s contents would slide up or down when clicking the <details> element. Now something different--and ugly--is happening. It's hard to describe. An example is at /de/localization. This regressed between 2.4 and 2.4.1.
Target Milestone: 2.4.1 → 2.4.2
I've downgraded jQuery to 1.4.1 locally and this no longer happens. Looks like a regression in jQuery.
I filed a ticket with jQuery: http://bugs.jquery.com/ticket/7960
Thanks for taking initiative on this Paul. Hopefully it's easy for them to track down. Feel free to un-/reassign once we've figured out where the problem is. Pushing out until we know if this is a jQuery bug or something we did.
Assignee: nobody → paulc
Target Milestone: 2.4.2 → Future
Is there a reason for the inline style on: `<summary style="display: inline">` Removing that makes it better. Other than that, it looks like the default easing changed for the animation. Or maybe there was no easing at all before. Looking at docs for slideToggle: "As of jQuery 1.4.3, an optional string naming an easing function may be used. Easing functions specify the speed at which the animation progresses at different points within the animation. The only easing implementations in the jQuery library are the default, called swing, and one that progresses at a constant pace, called linear" So we probably can just change to 'linear' and it will behave as before.
I don't think it's the easing thing: the wiki document edit page's disclosers animate properly. As for the "inline": rats! I didn't mean to leave that inline. It exists to make the mode selection buttons appear next to the readout titles rather than below them. *moves that to dashboards.css* Good eye!
Assignee: paulc → erik
Target Milestone: Future → 2.4.2
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
(In reply to comment #2) > I filed a ticket with jQuery: http://bugs.jquery.com/ticket/7960 Added a comment to the ticket with Ricky's example, hopefully they will fix the display: table wonkiness. Thanks Ricky! Apparently this has gotten different degrees of wonky since about jQuery 1.2.6!
Much smoother, gliding action in the collapse/re-open animations on various locale versions of the localizer & contributor dashboards.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.