Index: chrome/browser/resources/print_preview/search/destination_search.js |
diff --git a/chrome/browser/resources/print_preview/search/destination_search.js b/chrome/browser/resources/print_preview/search/destination_search.js |
index eb68c2f1ad09a4d03ea22f4b2443b13b3272a580..7233e3b8ae210f2b727edd1067133e43e928d03b 100644 |
--- a/chrome/browser/resources/print_preview/search/destination_search.js |
+++ b/chrome/browser/resources/print_preview/search/destination_search.js |
@@ -123,14 +123,6 @@ cr.define('print_preview', function() { |
}; |
/** |
- * Padding at the bottom of a destination list in pixels. |
- * @type {number} |
- * @const |
- * @private |
- */ |
- DestinationSearch.LIST_BOTTOM_PADDING_ = 18; |
- |
- /** |
* Number of unregistered destinations that may be promoted to the top. |
* @type {number} |
* @const |
@@ -390,8 +382,9 @@ cr.define('print_preview', function() { |
var getListsTotalHeight = function(lists, counts) { |
return lists.reduce(function(sum, list, index) { |
+ var container = list.getContainerElement(); |
return sum + list.getEstimatedHeightInPixels(counts[index]) + |
- DestinationSearch.LIST_BOTTOM_PADDING_; |
+ parseInt(window.getComputedStyle(container).paddingBottom, 10); |
}, 0); |
}; |
var getCounts = function(lists, count) { |