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

Unified Diff: chrome/browser/resources/app_list/start_page.js

Issue 2253253002: [Merge to M53][Chrome OS] Change layout of the launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: 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 | chrome/browser/ui/app_list/arc/arc_app_list_prefs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/app_list/start_page.js
diff --git a/chrome/browser/resources/app_list/start_page.js b/chrome/browser/resources/app_list/start_page.js
index 10ea9f5ab462ca2ead7ca495e7a37f7c9d3ed8ae..428e81bf5f0e895aa821755a0099d1fe0e9ece83 100644
--- a/chrome/browser/resources/app_list/start_page.js
+++ b/chrome/browser/resources/app_list/start_page.js
@@ -6,6 +6,12 @@
* @fileoverview App launcher start page implementation.
*/
+/**
+ * The maximum height of the Google Doodle. Note this value should be consistent
+ * with kWebViewHeight in start_page_view.cc.
+ */
+var doodleMaxHeight = 224;
+
cr.define('appList.startPage', function() {
'use strict';
@@ -72,6 +78,8 @@ cr.define('appList.startPage', function() {
var doodleImage = document.createElement('img');
doodleImage.id = 'doodle_image';
+ if (doodleData.transparent_large_image.height > doodleMaxHeight)
+ doodleImage.setAttribute('height', doodleMaxHeight);
if (doodleData.alt_text) {
doodleImage.alt = doodleData.alt_text;
doodleImage.title = doodleData.alt_text;
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/arc/arc_app_list_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698