Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Issue 2635103003: [ash-md] Fixed Label::GetTextSize() to account for insets. (Closed)

Created:
3 years, 11 months ago by bruthig
Modified:
3 years, 11 months ago
Reviewers:
msw
CC:
chromium-reviews, kalyank, sadrul, oshima+watch_chromium.org, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ash-md] Fixed Label::GetTextSize() to account for insets. Label::GetTextSize() was not properly accounting for insets. This was affecting Label::GetPreferredSize() and ultimately the visual layout of a label could be incorrect. BUG=678337

Patch Set 1 #

Patch Set 2 : Added SizeToFit() example use. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -1 line) Patch
M ash/common/system/chromeos/screen_security/screen_tray_item.cc View 1 5 chunks +10 lines, -0 lines 0 comments Download
M ui/views/controls/label.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (6 generated)
bruthig
msw@, I've found at least one solution to the immediate problem however there are at ...
3 years, 11 months ago (2017-01-16 23:53:03 UTC) #4
bruthig
3 years, 11 months ago (2017-01-17 23:10:09 UTC) #7
Just an update here.  I've found a less risky fix for issue 678337.  I will
close this review and create a new issue to track the bug(s) in Label.

Powered by Google App Engine
This is Rietveld 408576698