-
Alan Cutter authored
This CL fixes a bug where permission prompts and page info dialogs go off screen when hosted app windows are maximised. This only affects platforms that don't support bubble anchor adjustment (see calls to set_adjust_if_offscreen(false) in BubbleDialogDelegateView::CreateBubble()). These platforms are Linux, Mac and Windows 7 with Aero disabled. This patch fixes the issue by making permission and page info dialogs anchored off the app menu use TOP_RIGHT instead of TOP_LEFT for their arrow position leading the bubble to position itself within the main window's bounds by default. Before: https://bugs.chromium.org/p/chromium/issues/attachment?aid=355950&signed_aid=ziHkOFUJALIjs_7uaUaPtQ==&inline=1 After: https://bugs.chromium.org/p/chromium/issues/attachment?aid=355951&signed_aid=9B2p0GLHiuHOMC-Ha-rXBQ==&inline=1 Bug: 877032 Change-Id: I98b1fe1e4fe8018886ae960c8601f5d518c9ea5e Reviewed-on: https://chromium-review.googlesource.com/1201507 Commit-Queue: Alan Cutter <alancutter@chromium.org> Reviewed-by:
Trent Apted <tapted@chromium.org> Cr-Commit-Position: refs/heads/master@{#589455}
fa02ae6a