Commit b84ba697 authored by isherman@chromium.org's avatar isherman@chromium.org

[rAc OSX] Fix reversed use of top and bottom padding.

The coordinate system for the window controller is flipped, but the code was
treating it as though it was unflipped.

BUG=315977
TEST=slightly less padding at top of dialog
R=groby@chromium.org

Review URL: https://codereview.chromium.org/72513003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235682 0039d316-1c4b-4281-b951-d872f2087c98
parent fa517d0e
......@@ -455,7 +455,7 @@ void AutofillDialogCocoa::OnConstrainedWindowClosed(
NSRect contentRect = NSZeroRect;
contentRect.size = [self preferredSize];
NSRect clientRect = contentRect;
clientRect.origin.y = chrome_style::kClientBottomPadding;
clientRect.origin.y = chrome_style::kTitleTopPadding;
clientRect.size.height -= chrome_style::kTitleTopPadding +
chrome_style::kClientBottomPadding;
......
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