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

Unified Diff: ash/shelf/shelf_layout_manager.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: Created 4 years, 5 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
Index: ash/shelf/shelf_layout_manager.cc
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
index d89ffb22ce78178bb9a30a3f6e0ad4d961969b40..c4077d0e15e7805caddb4c478497976503842b19 100644
--- a/ash/shelf/shelf_layout_manager.cc
+++ b/ash/shelf/shelf_layout_manager.cc
@@ -764,9 +764,8 @@ void ShelfLayoutManager::UpdateBoundsAndOpacity(
shelf_widget_->status_area_widget()->GetNativeView()->parent(),
status_bounds));
}
- // For crbug.com/622431, when the shelf alignment is BOTTOM_LOCKED, we
- // don't set display work area, as it is not real user-set alignment.
if (!state_.is_screen_locked &&
+ !WmShell::Get()->GetSessionStateDelegate()->IsUserSessionBlocked() &&
shelf_widget_->GetAlignment() != SHELF_ALIGNMENT_BOTTOM_LOCKED) {
gfx::Insets insets;
// If user session is blocked (login to new user session or add user to

Powered by Google App Engine
This is Rietveld 408576698