[LabelButton] Fix a glitch when shrinking down label
This CL fixes a glitch with spacing between image and label when the button is shrinking down its label. Before this CL, the preferred size jumped by this spacing _at the end_ of the animation when GetText() becomes empty. This CL makes LabelButton disregard this spacing at the beginning of the animation. Bug: 1002160 Change-Id: I213d2ba50aefde01dba1b2615ef47b38f9e3b94c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1849388 Commit-Queue: Jan Krcal <jkrcal@chromium.org> Auto-Submit: Jan Krcal <jkrcal@chromium.org> Reviewed-by:Peter Boström <pbos@chromium.org> Cr-Commit-Position: refs/heads/master@{#704599}
Showing
Please register or sign in to comment