| Index: ash/system/tray/tray_views.cc
|
| diff --git a/ash/system/tray/tray_views.cc b/ash/system/tray/tray_views.cc
|
| index ddc2b8c5fe2e57ef7966f2850024ed9c217d4527..3b25b3839a68c854b2ed2a775ba17be50ffe0e2a 100644
|
| --- a/ash/system/tray/tray_views.cc
|
| +++ b/ash/system/tray/tray_views.cc
|
| @@ -622,9 +622,10 @@ void SpecialPopupRow::Layout() {
|
|
|
| gfx::Rect bounds(button_container_->GetPreferredSize());
|
| bounds.set_height(content_bounds.height());
|
| - bounds = content_bounds.Center(bounds.size());
|
| - bounds.set_x(content_bounds.width() - bounds.width());
|
| - button_container_->SetBoundsRect(bounds);
|
| + gfx::Rect container_bounds = content_bounds;
|
| + container_bounds.ClampToCenteredSize(bounds.size());
|
| + container_bounds.set_x(content_bounds.width() - bounds.width());
|
| + button_container_->SetBoundsRect(container_bounds);
|
|
|
| bounds = content_->bounds();
|
| bounds.set_width(button_container_->x());
|
|
|