DescriptionWhen animating a content setting bubble smaller, hide the background later.
We were hiding when the label size reached 0. That winds up hiding the
background when the icon has both the internal spacing and the trailing padding
adjacent to it before the background ends. Instead, wait to hide the background
until the internal spacing portion of that is collapsed, so it's just
<leading padding><icon><trailing padding>.
This isn't very noticeable when the internal spacing is 2 px. It will be more
noticeable when I later increase the spacing (which is how I saw this).
This allows moving label layout in IconLabelBubbleView() downward since we no
longer care about sizing the label to 0 early. I think the code reads more
clearly that way.
BUG=none
TEST=none
Committed: https://crrev.com/24c8b5c843dd95d3dd0753855d2de19d9b2d92a0
Cr-Commit-Position: refs/heads/master@{#383922}
Patch Set 1 #Patch Set 2 : Resync #
Total comments: 1
Patch Set 3 : Restore function #Patch Set 4 : Attempt to fix test #
Total comments: 2
Patch Set 5 : Rebase #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 12 (6 generated)
|