Commit 61a96a66 authored by Manu Cornet's avatar Manu Cornet Committed by Commit Bot

CrOS shelf: tentative fix for unresponsive shelf

Extend the shelf hover area to the edges of the screen.

Bug: 899007
Change-Id: I344e80c9c2272ec70d5c638646bd9d5f0086f87a
Reviewed-on: https://chromium-review.googlesource.com/c/1318799Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Manu Cornet <manucornet@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605714}
parent 71b73f9a
......@@ -961,7 +961,8 @@ gfx::Rect ShelfLayoutManager::GetAutoHideShowShelfRegionInScreen() const {
// TODO(pkotwicz): Figure out if we need any special handling when the
// keyboard is visible.
return show_shelf_region_in_screen;
return screen_util::SnapBoundsToDisplayEdge(show_shelf_region_in_screen,
shelf_widget_->GetNativeWindow());
}
bool ShelfLayoutManager::HasVisibleWindow() const {
......
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