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

Unified Diff: ash/system/tray/tray_item_more.cc

Issue 9874022: ash: Long network names should not overlap with the chevron in the uber tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | ash/system/tray_update.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_item_more.cc
diff --git a/ash/system/tray/tray_item_more.cc b/ash/system/tray/tray_item_more.cc
index bcf666e13a8810fe7efcd48e7b31c0961960cee5..13ce3c49d6470efc2c33c20e864f2f5762b4b194 100644
--- a/ash/system/tray/tray_item_more.cc
+++ b/ash/system/tray/tray_item_more.cc
@@ -74,7 +74,9 @@ void TrayItemMore::Layout() {
// Adjust the label's bounds in case it got cut off by |more_|.
if (label_->bounds().Intersects(more_->bounds())) {
- label_->SetBoundsRect(label_->bounds().Subtract(more_->bounds()));
+ gfx::Rect bounds = label_->bounds();
+ bounds.set_width(more_->x() - kTrayPopupPaddingBetweenItems - label_->x());
+ label_->SetBoundsRect(bounds);
}
}
« no previous file with comments | « no previous file | ash/system/tray_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698