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

Unified Diff: chrome/browser/resources/print_preview/search/destination_list.js

Issue 927943006: print_preview: remove padding above button strip on destinations dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/resources/print_preview/search/destination_search.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/search/destination_list.js
diff --git a/chrome/browser/resources/print_preview/search/destination_list.js b/chrome/browser/resources/print_preview/search/destination_list.js
index cffe09ce65cdbefdce25ea5f9c24ed764bcfa976..861125801efbad0dfc35adef569c9cf0936e8979 100644
--- a/chrome/browser/resources/print_preview/search/destination_list.js
+++ b/chrome/browser/resources/print_preview/search/destination_list.js
@@ -151,6 +151,14 @@ cr.define('print_preview', function() {
DestinationList.HEIGHT_OF_ITEM_);
},
+ /**
+ * @return {Element} The element that contains this one. Used for height
+ * calculations.
+ */
+ getContainerElement: function() {
+ return this.getElement().parentNode;
Dan Beam 2015/02/20 19:20:43 i added this so if the DOM structure changes the A
Aleksey Shlyapnikov 2015/02/20 19:26:41 No, this way is fine.
+ },
+
/** @param {boolean} isVisible Whether the throbber is visible. */
setIsThrobberVisible: function(isVisible) {
setIsVisible(this.getChildElement('.throbber-container'), isVisible);
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/search/destination_search.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698