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

Unified Diff: ash/common/wm/default_state.cc

Issue 2175833002: AdjustBoundsToEnsureMinimumWindowVisibility may cause unwanted shift if window dimension is small (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ensure window abuts the bottom of screen Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/wm/window_state_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/default_state.cc
diff --git a/ash/common/wm/default_state.cc b/ash/common/wm/default_state.cc
index e7aa9e21265f821e039772f6541ea056e37a9cbb..415b55c0bbfed733111d2122106f164cd6bb0b01 100644
--- a/ash/common/wm/default_state.cc
+++ b/ash/common/wm/default_state.cc
@@ -476,7 +476,8 @@ bool DefaultState::ProcessWorkspaceEvents(WindowState* window_state,
wm::AdjustBoundsToEnsureMinimumWindowVisibility(work_area_in_parent,
&bounds);
window_state->AdjustSnappedBounds(&bounds);
- if (window_state->window()->GetBounds() != bounds)
+ if (window_state->window()->GetBounds() != bounds &&
+ !window_state->ignored_by_shelf())
sky 2016/08/25 15:19:30 ignored_by_shelf means: // True if the window i
window_state->SetBoundsDirectAnimated(bounds);
return true;
}
« no previous file with comments | « no previous file | ash/wm/window_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698