MD downloads: Fix layout of dangerous download views.
The old logic wasn't prepared to lay out a dangerous download when when the button was too small to contain it, which happens when a download animates in. This change lays out the dangerous download view like other views in the download item (other than the menu button): give it its final frame and anchor it to the leading edge of the button. That way, it's gracefully uncovered as the button's width animates up from zero. Bug: 805647 Change-Id: Ic7c75cfc0675674e15694670858b6673c5f4b39b Reviewed-on: https://chromium-review.googlesource.com/884442Reviewed-by:Avi Drissman <avi@chromium.org> Commit-Queue: Sidney San Martín <sdy@chromium.org> Cr-Commit-Position: refs/heads/master@{#531716}
Showing
Please register or sign in to comment