Commit 8c1affaf authored by horo@chromium.org's avatar horo@chromium.org

Fix the candidate window position of IME in Retina display.

BUG=139108
TEST=manually done


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148916 0039d316-1c4b-4281-b951-d872f2087c98
parent adbe6770
...@@ -2816,9 +2816,8 @@ extern NSString *NSTextInputReplacementRangeAttributeName; ...@@ -2816,9 +2816,8 @@ extern NSString *NSTextInputReplacementRangeAttributeName;
// flip the coordinate system and then convert it into screen coordinates for // flip the coordinate system and then convert it into screen coordinates for
// return. // return.
NSRect viewFrame = [self frame]; NSRect viewFrame = [self frame];
rect.origin.y = NSHeight(viewFrame) - rect.origin.y; rect.origin.y = NSHeight(viewFrame) - NSMaxY(rect);
rect.origin.y -= rect.size.height; rect = [self convertRect:rect toView:nil];
rect = [self convertRectToBase:rect];
rect.origin = [[self window] convertBaseToScreen:rect.origin]; rect.origin = [[self window] convertBaseToScreen:rect.origin];
return rect; return rect;
} }
......
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