| Index: chrome/browser/ui/views/autofill/autofill_dialog_views.cc
|
| diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
|
| index 2859056d3254ce9714be5f7bb1690f273d9e2281..3f5e6edac8e605d561423fdccfab9101b1da0edf 100644
|
| --- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
|
| +++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
|
| @@ -207,9 +207,9 @@
|
| int end_x = bounds.width();
|
| views::View* decorated = child_at(2);
|
| if (decorated->visible()) {
|
| - const int preferred_width = decorated->GetPreferredSize().width();
|
| - decorated->SetBounds(bounds.width() - preferred_width, bounds.y(),
|
| - preferred_width, bounds.height());
|
| + decorated->SizeToPreferredSize();
|
| + decorated->SetX(bounds.width() - decorated->bounds().width());
|
| + decorated->SetY(bounds.y());
|
| end_x = decorated->bounds().x() - kAroundTextPadding;
|
| }
|
|
|
|
|