Chromium Code Reviews| Index: chrome/browser/ui/views/avatar_menu_bubble_view.cc |
| diff --git a/chrome/browser/ui/views/avatar_menu_bubble_view.cc b/chrome/browser/ui/views/avatar_menu_bubble_view.cc |
| index 9f1b0816bbb73414ca795ccb99911cccdf942864..da7c78dc57707c328426caa908800fe30a286efa 100644 |
| --- a/chrome/browser/ui/views/avatar_menu_bubble_view.cc |
| +++ b/chrome/browser/ui/views/avatar_menu_bubble_view.cc |
| @@ -497,5 +497,9 @@ void AvatarMenuBubbleView::OnAvatarMenuModelChanged( |
| add_profile_link_->SetEnabledColor(SkColorSetRGB(0xe3, 0xed, 0xf6)); |
| AddChildView(add_profile_link_); |
| - PreferredSizeChanged(); |
| + // If the bubble has already been shown then resize and reposition the bubble. |
| + if (GetWidget()) { |
|
Peter Kasting
2011/12/12 21:43:43
This is actually kind of worrisome. If we can rea
sail
2011/12/13 01:58:34
Done.
I still needed the Layout/SizeToContents() c
|
| + Layout(); |
| + SizeToContents(); |
| + } |
| } |