Index: chrome/browser/ui/views/omnibox/omnibox_view_win.cc |
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc |
index 782c9b01c4280186eb221ddfc7bfef57ae682438..962db208a59ab5c317ed5324cf540da0e4604841 100644 |
--- a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc |
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc |
@@ -506,7 +506,8 @@ OmniboxViewWin::OmniboxViewWin(AutocompleteEditController* controller, |
// We set font_y_adjustment_ so that the ascender of the font gets |
// centered on the available height of the view. |
- font_y_adjustment_ = (parent_view->GetHeight() - cap_height) / 2 - |
+ font_y_adjustment_ = |
+ (parent_view->GetInternalHeight(true) - cap_height) / 2 - |
tm.tmInternalLeading; |
// Get the number of twips per pixel, which we need below to offset our text |