summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-09 02:13:18 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-09 02:13:18 +0000
commit6020abf570271983faf8938884d8ea1790f47b0d (patch)
treea7660270784fa2e1b40649a3398106135dbab360 /chrome/browser/views
parent39c74c89ba053eacdee181037fd226194c6b45d4 (diff)
downloadchromium_src-6020abf570271983faf8938884d8ea1790f47b0d.zip
chromium_src-6020abf570271983faf8938884d8ea1790f47b0d.tar.gz
chromium_src-6020abf570271983faf8938884d8ea1790f47b0d.tar.bz2
Fix omnibox popup positioning by not calling "SetChildBounds" which attempts to do a bunch of things to keep windows visible on screen... this isn't really what we want for this window, so we just call SetBounds instead.
http://crbug.com/11721 TEST=drag window so it's half offscreen, type in the omnibox. dropdown should appear properly anchored underneath omnibox even though it's half offscreen. Review URL: http://codereview.chromium.org/119338 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17922 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/autocomplete/autocomplete_popup_win.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/views/autocomplete/autocomplete_popup_win.cc b/chrome/browser/views/autocomplete/autocomplete_popup_win.cc
index 6dfbfee..bd3de12 100644
--- a/chrome/browser/views/autocomplete/autocomplete_popup_win.cc
+++ b/chrome/browser/views/autocomplete/autocomplete_popup_win.cc
@@ -42,12 +42,11 @@ void AutocompletePopupWin::Init(AutocompleteEditViewWin* edit_view,
}
void AutocompletePopupWin::Show() {
- // Move the popup
- int flags = SWP_NOACTIVATE;
+ // Move the popup to the place appropriate for the window's current position -
+ // it may have been moved since it was last shown.
+ SetBounds(contents_->GetPopupBounds());
if (!IsVisible())
- flags |= SWP_SHOWWINDOW;
- win_util::SetChildBounds(GetNativeView(), NULL, NULL,
- contents_->GetPopupBounds(), 0, flags);
+ WidgetWin::Show();
}
////////////////////////////////////////////////////////////////////////////////