Commit e5c68b96 authored by Weidong Guo's avatar Weidong Guo Committed by Commit Bot

Fix 1px gap for odd display size in nocturne

Bug: 884889
Change-Id: If9c93d44de4693ded68e09947d8bee1fff00c471
Reviewed-on: https://chromium-review.googlesource.com/1246151
Commit-Queue: Weidong Guo <weidongg@chromium.org>
Reviewed-by: default avatarXiaoqian Dai <xdai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#594472}
parent e6f5eba3
......@@ -657,8 +657,7 @@ void AppListView::InitializeFullscreen(gfx::NativeView parent) {
: display_work_area_bounds.bottom();
gfx::Rect app_list_overlay_view_bounds(
display_nearest_view.bounds().x(), overlay_view_bounds_y,
display_nearest_view.bounds().width(),
display_nearest_view.bounds().height());
parent->bounds().width(), display_nearest_view.bounds().height());
// The app list container fills the screen, so convert to local coordinates.
gfx::Rect local_bounds = app_list_overlay_view_bounds;
......
......@@ -1143,7 +1143,10 @@ void WindowGrid::InitShieldWidget() {
SK_ColorTRANSPARENT, initial_opacity, /*parent=*/nullptr,
/*stack_on_top=*/true);
aura::Window* widget_window = shield_widget_->GetNativeWindow();
const gfx::Rect bounds = widget_window->parent()->bounds();
aura::Window* parent_window = widget_window->parent();
const gfx::Rect bounds = ash::screen_util::SnapBoundsToDisplayEdge(
parent_window->bounds(), parent_window);
parent_window->SetBounds(bounds);
widget_window->SetBounds(bounds);
widget_window->SetName("OverviewModeShield");
......
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