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

Unified Diff: ui/app_list/views/app_list_view.cc

Issue 2969303002: Fixed bug where the display height was being computed incorrectly, leading to the AppListView being… (Closed)
Patch Set: Changed how we compute display_height. Created 3 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
« 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: ui/app_list/views/app_list_view.cc
diff --git a/ui/app_list/views/app_list_view.cc b/ui/app_list/views/app_list_view.cc
index 48a26d9691f3574d9d65d1e07384ba03e8c7dac8..a527ad09041d4e01f03365d7c561d1581b415ffe 100644
--- a/ui/app_list/views/app_list_view.cc
+++ b/ui/app_list/views/app_list_view.cc
@@ -810,8 +810,8 @@ void AppListView::SetState(AppListState new_state) {
gfx::Rect new_widget_bounds = fullscreen_widget_->GetWindowBoundsInScreen();
int display_height = display::Screen::GetScreen()
->GetDisplayNearestView(parent_window())
- .work_area()
- .bottom();
+ .size()
+ .height();
switch (new_state_override) {
case PEEKING: {
« 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