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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc

Issue 2815303004: Update the Windows iOS promotion to have the same width as the bubble that appears before it. (Closed)
Patch Set: merge Created 3 years, 8 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
Index: chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
index 0608c37d485b398af8cceb219b70776af0594d0e..1c503a95e249e7a2cb20605394ae0e4c5872102f 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
@@ -411,6 +411,7 @@ void BookmarkBubbleView::ShowIOSPromotion() {
AddChildView(ios_promo_view_);
GetWidget()->UpdateWindowIcon();
GetWidget()->UpdateWindowTitle();
- SizeToContents();
+ // Resize the bubble so it has the same width as the parent bubble.
+ ios_promo_view_->UpdateBubbleHeight();
}
#endif

Powered by Google App Engine
This is Rietveld 408576698