Index: chrome/browser/tab_contents/spellchecker_submenu_observer.cc |
diff --git a/chrome/browser/tab_contents/spellchecker_submenu_observer.cc b/chrome/browser/tab_contents/spellchecker_submenu_observer.cc |
index b8f31ae7de4ec1b8b3195330771a2294d127d264..479ced3dd59c58b409b0166cd699f93da60ffd96 100644 |
--- a/chrome/browser/tab_contents/spellchecker_submenu_observer.cc |
+++ b/chrome/browser/tab_contents/spellchecker_submenu_observer.cc |
@@ -207,9 +207,9 @@ void SpellCheckerSubMenuObserver::ExecuteCommand(int command_id) { |
// "Stop asking Google for spelling suggestions" item, we directly update |
// the profile and stop integrating the spelling service immediately. |
if (!integrate_spelling_service_) { |
- gfx::Rect bounds = rvh->view()->GetViewBounds(); |
- bounds.Inset(bounds.width() / 2, 0); |
- ConfirmBubbleModel::Show(rvh->view()->GetNativeView(), bounds.origin(), |
+ gfx::Rect rect = rvh->view()->GetViewBounds(); |
+ ConfirmBubbleModel::Show(rvh->view()->GetNativeView(), |
+ gfx::Point(rect.CenterPoint().x(), rect.y()), |
new SpellingBubbleModel(proxy_->GetProfile())); |
} else { |
Profile* profile = proxy_->GetProfile(); |