Chromium Code Reviews| 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); |