forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusts content bubble animation with respect to icon size
This CL corrects several issues with the icon bubble animation: 1. The bubble is not clipping its children, so the image draws outside the bubble bounds. This is MD-specific. 2. The image is being centered at the bubble center when the size is too low, instead of always being positioned based on the leading edge of the bubble, so it doesn't "slide in" correctly shifting during the initial portion of the animation. 3. The animation "closes" down to zero width (MD) or smaller than necessary width (non-MD) and then snaps the image back into place; it should animate down to become just large enough to show the image. 4. Removes the clamp in non-MD size that prevents animation from starting at zero. 5. Avoids clipping icon at the end of the animation (MD) by hiding the border even before the animation ends. 6. Reduces padding at the end of the MD version of the text label. 7. Corrects RTL layout by showing trailing edge of the icon first. BUG=591411 Review URL: https://codereview.chromium.org/1763713004 Cr-Commit-Position: refs/heads/master@{#380729}
- Loading branch information
varkha
authored and
Commit bot
committed
Mar 11, 2016
1 parent
a8b8995
commit a2a4fab
Showing
7 changed files
with
342 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.