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

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

Issue 656343003: Fix first page of app list not rendering in RTL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: add comment Created 6 years, 2 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/apps_grid_view.cc
diff --git a/ui/app_list/views/apps_grid_view.cc b/ui/app_list/views/apps_grid_view.cc
index 22b7fd97237393262ff49957a89cb5a1965b46b7..7219ba255e5a8bed5fb8afe1f7c26fe40fbe002e 100644
--- a/ui/app_list/views/apps_grid_view.cc
+++ b/ui/app_list/views/apps_grid_view.cc
@@ -1183,6 +1183,11 @@ void AppsGridView::MoveSelected(int page_delta,
}
void AppsGridView::CalculateIdealBounds() {
+ // TODO(calamity): This fixes http://crbug.com/422604 on ChromeOS but it's
+ // unclear why. This should be investigated to fix the issue on Linux Ash.
+ if (GetContentsBounds().IsEmpty())
+ return;
+
gfx::Size grid_size = GetTileGridSize();
// Page size including padding pixels. A tile.x + page_width means the same
« 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