New issue
Advanced search Search tips

Issue 782537 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Mac: Bookmarks Bar bookmark title gets squished and clipped instead of truncating

Project Member Reported by tapted@chromium.org, Nov 8 2017

Issue description

Chrome Version       : 64.0.3260.2
OS Version: OS X 10.12.6

What steps will reproduce the problem?
1. Add a bookmark, give it a title to obtain a specific length, close to the maximum width (for me, it was "Pilates Classes - Grow" - don't judge me :p)

What is the expected result?

No text clipping.


What happens instead of that?

Text gets clipped. The font kerning also changes slightly.


This seems similar to an issue we had with the omnibox after bumping the SDK version we link with - maybe this regressed at the same time.


UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3260.2 Safari/537.36



 
output_WgVSpz.gif
52.0 KB View Download
Cc: jmukthavaram@chromium.org
Labels: Needs-Traige-M64 Needs-Feedback
Unable to reproduce the issue on Mac 10.12.6 & windows 7 using chrome reported version-64.0.3260.2 & latest Canary-64.0.3261.0 as per the above steps & gif file.

Observed that bookmark title is getting truncated on the bookmark bar when it crossed max length limit.No text clipping observed.

Please find the attached screencast for reference & let us know if we miss any steps to reproduce the issue.

Thanks in advance..!


782537.mp4
2.3 MB View Download

Comment 2 by sdy@chromium.org, Nov 8 2017

Cc: lgrey@chromium.org

Comment 3 by lgrey@chromium.org, Nov 8 2017

Cc: -lgrey@chromium.org
Labels: -Needs-Traige-M64 Hotlist-CocoaBrowser
Owner: lgrey@chromium.org
Status: Assigned (was: Unconfirmed)
I can repro this. jmukthavaram@ I think it needs to be the exact text tapted@ provided.
Project Member

Comment 4 by bugdroid1@chromium.org, Dec 20 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c6dd96ffb49cea709f1373d01e7e7e19307a886f

commit c6dd96ffb49cea709f1373d01e7e7e19307a886f
Author: Sidney San Martín <sdy@chromium.org>
Date: Wed Dec 20 21:52:43 2017

[Mac] Ensure bookmark button titles elide correctly in LTR.

Currently, when drawing the title of a bookmark button cell in LTR, the
width isn't set, and the default width sticks out slightly from the
trailing edge of the cell. This causes titles that are just slightly too
big to fit into the cell to be clipped to the edge of the button.

This change avoids separate code paths for LTR and RTL by laying out the
title for LTR, always, and then flipping it if necessary.

Bug:  782537 ,  782916 
Change-Id: I31624822c79e45152426f914d5fde70243ec0e40
Reviewed-on: https://chromium-review.googlesource.com/835128
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Sidney San Martín <sdy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#525477}
[modify] https://crrev.com/c6dd96ffb49cea709f1373d01e7e7e19307a886f/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm

Comment 5 by sdy@chromium.org, Dec 20 2017

Cc: -sdy@chromium.org lgrey@chromium.org
Owner: sdy@chromium.org
Status: Fixed (was: Assigned)
Tested this issue on Mac OS using chrome latest Canary-65.0.3309.0 as per the steps mentioned in C#0. No clipped bookmark text on bookmark bar is observed for all the bookmarks.

tapted@,
Please find the attached screencast for reference & confirm on the fix & the expected behavior.

Thanks in advance..!


782537.mp4
2.3 MB View Download
Tested on Mac 10.12.6.

Comment 8 by sdy@chromium.org, Jan 5 2018

Status: Verified (was: Fixed)
Thanks! This looks good to me.
tapted@,
Could you please check this issue as C#6 & confirm on the fix.
Thanks in advance..!
yah - my bookmark is no longer clipped in 65.0.3314.0, it is elided instead which looks right. See attached vs 65.0.3294.5.

Thanks for the fix sdy!
Screen Shot 2018-01-08 at 3.57.39 pm.png
14.4 KB View Download

Comment 11 by sdy@chromium.org, Jan 8 2018

tapted@: 👍!

Sign in to add a comment