Description[Mac] Fix download item text sometimes being misaligned.
There's two possible stable values for |titleY_|,
kPrimaryTextPosTop - when status message is visible,
kPrimaryTextOnlyPosTop - when status message is not visible.
There was an inconistency how this was being initialized -
as isStatusTextVisible_ was being set to NO but the value
was set to kPrimaryTextPosTop.
The text would then be misaligned if the code would take
the -hideSecondaryTitle in -setStateFromDownload:.
This CL fixes the issue and updates the test to check this.
BUG=484848
Committed: https://crrev.com/293783badd2363e2135d593cb5e36e04a163c92f
Cr-Commit-Position: refs/heads/master@{#329305}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|