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

Unified Diff: views/bubble/bubble_delegate.cc

Issue 8368016: Rebase BookmarkBubble on the new views bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add Textfield::[set_]select_all_on_focus, use GetInitiallyFocusedView. Created 9 years, 1 month 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: views/bubble/bubble_delegate.cc
diff --git a/views/bubble/bubble_delegate.cc b/views/bubble/bubble_delegate.cc
index e4a0c63844b1ce2d9cae5e3d493689ccf62aaa91..24ac994981b4ed0e552a1cdd2d7dd2a8427eb358 100644
--- a/views/bubble/bubble_delegate.cc
+++ b/views/bubble/bubble_delegate.cc
@@ -112,8 +112,9 @@ Widget* BubbleDelegateView::CreateBubble(BubbleDelegateView* bubble_delegate,
Widget* bubble_widget = CreateBubbleWidget(bubble_delegate, parent_widget);
#if defined(OS_WIN) && !defined(USE_AURA)
- bubble_delegate->InitializeBorderWidget(parent_widget);
+ // First set the contents view to initialize view bounds for widget sizing.
bubble_widget->SetContentsView(bubble_delegate->GetContentsView());
+ bubble_delegate->InitializeBorderWidget(parent_widget);
bubble_widget->SetBounds(bubble_delegate->GetBubbleClientBounds());
#else
bubble_widget->SetBounds(bubble_delegate->GetBubbleBounds());

Powered by Google App Engine
This is Rietveld 408576698