Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(784)

Issue 665933005: mac: Fix bug where finder window extends past bottom of screen. (Closed)

Created:
6 years, 2 months ago by erikchen
Modified:
6 years, 1 month ago
Reviewers:
Robert Sesek
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

mac: Fix bug where finder window extends past bottom of screen. AppKit is responsible for determining the height of the NSSavePanel and NSOpenPanel. It will never pick a height that causes the panel to be taller than the screen, but it may pick a height that requires the panel to be positioned near the top of its presenting window. Chrome's logic for positioning panels did not take this into consideration, so it was possible to position a panel that extended past the bottom of the screen. This CL fixes this oversight. BUG=423635 Committed: https://crrev.com/b5a19d4ffc9184ec221d46a88b4afa5071eb1527 Cr-Commit-Position: refs/heads/master@{#301533}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Rebase against top of tree. Comments from rsesek. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -6 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm View 1 4 chunks +26 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 1 chunk +22 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
erikchen
rsesek: Please review.
6 years, 2 months ago (2014-10-24 22:57:01 UTC) #4
Robert Sesek
Is it possible to write a test for this? I think there's a browsertest already ...
6 years, 1 month ago (2014-10-27 15:41:23 UTC) #5
erikchen
rsesek: PTAL I updated the browser test to also test for this edge case. https://codereview.chromium.org/665933005/diff/40001/chrome/browser/ui/cocoa/browser_window_controller_private.mm ...
6 years, 1 month ago (2014-10-27 23:18:13 UTC) #6
Robert Sesek
LGTM
6 years, 1 month ago (2014-10-27 23:20:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/665933005/60001
6 years, 1 month ago (2014-10-27 23:46:14 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:60001)
6 years, 1 month ago (2014-10-28 01:10:59 UTC) #10
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 01:11:48 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b5a19d4ffc9184ec221d46a88b4afa5071eb1527
Cr-Commit-Position: refs/heads/master@{#301533}

Powered by Google App Engine
This is Rietveld 408576698