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

Unified Diff: ui/base/text/text_elider.cc

Issue 11150013: Fix wrong truncation of notification popup messages in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Withdraw the not so effective tests. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/text/text_elider.cc
diff --git a/ui/base/text/text_elider.cc b/ui/base/text/text_elider.cc
index b64599244463245197bc582bad1bcdf6905faa49..5f1593e9519f9c1156c2a2a97e52edceb7fda42f 100644
--- a/ui/base/text/text_elider.cc
+++ b/ui/base/text/text_elider.cc
@@ -907,7 +907,7 @@ bool RectangleText::Finalize() {
void RectangleText::AddLine(const string16& line) {
const int line_width = font_.GetStringWidth(line);
- if (line_width < available_pixel_width_) {
+ if (line_width <= available_pixel_width_) {
AddToCurrentLineWithWidth(line, line_width);
} else {
// Iterate over positions that are valid to break the line at. In general,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698