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

Unified Diff: ash/shelf/shelf_layout_manager.cc

Issue 2092863004: Docked windows resized on unlock with vertical shelf position (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change crbug number Created 4 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_layout_manager.cc
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
index c7bf80346170cd1a1d10f188a2f281390f867fb3..83c2d13371500a75c6d5ef7540b4f0f63903b226 100644
--- a/ash/shelf/shelf_layout_manager.cc
+++ b/ash/shelf/shelf_layout_manager.cc
@@ -745,7 +745,10 @@ void ShelfLayoutManager::UpdateBoundsAndOpacity(
shelf_widget_->status_area_widget()->GetNativeView()->parent(),
status_bounds));
}
- if (!state_.is_screen_locked) {
+ // 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 &&
+ shelf_widget_->GetAlignment() != SHELF_ALIGNMENT_BOTTOM_LOCKED) {
gfx::Insets insets;
// If user session is blocked (login to new user session or add user to
// the existing session - multi-profile) then give 100% of work area only
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698