]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #41131 - euclio:collapse-animation, r=GuillaumeGomez
authorCorey Farwell <coreyf@rwell.org>
Fri, 7 Apr 2017 13:20:11 +0000 (09:20 -0400)
committerGitHub <noreply@github.com>
Fri, 7 Apr 2017 13:20:11 +0000 (09:20 -0400)
rustdoc: collapse docblock before showing label

The animation for collapsing descriptions is currently pretty jarring, as the label starts fading in as the description is collapsing. This causes the description to jump down a line (and sometimes change indentation) while animating.

This PR modifies this behavior to collapse the block entirely before starting to fade in the collapse button label.

While this PR works well for descriptions of structs, traits, etc., it still does not look ideal for attributes. I'd appreciate any suggestions for improving that animation. Perhaps we want to optimize for the single-attribute case, and try not to collapse the attribute list entirely before fading in the label?


Trivial merge