Commit 50412714 authored by groby@chromium.org's avatar groby@chromium.org

[rAC, OSX] Place autofill popups correctly.

Autofill suggestions were popping up in the wrong place, due to a bad
coordinate system conversion.

BUG=286521
R=isherman@chromium.org

Review URL: https://chromiumcodereview.appspot.com/24072005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223524 0039d316-1c4b-4281-b951-d872f2087c98
parent f1efbdb5
...@@ -383,7 +383,7 @@ bool CompareInputRows(const autofill::DetailInput* input1, ...@@ -383,7 +383,7 @@ bool CompareInputRows(const autofill::DetailInput* input1,
string16 fieldValue = base::SysNSStringToUTF16([textfield fieldValue]); string16 fieldValue = base::SysNSStringToUTF16([textfield fieldValue]);
// Get the frame rectangle for the designated field, in screen coordinates. // Get the frame rectangle for the designated field, in screen coordinates.
NSRect textFrameInScreen = [field convertRect:[field frame] toView:nil]; NSRect textFrameInScreen = [field convertRect:[field bounds] toView:nil];
textFrameInScreen.origin = textFrameInScreen.origin =
[[field window] convertBaseToScreen:textFrameInScreen.origin]; [[field window] convertBaseToScreen:textFrameInScreen.origin];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment