Index: chrome/browser/resources/contextual_search/promo.js |
diff --git a/chrome/browser/resources/contextual_search/promo.js b/chrome/browser/resources/contextual_search/promo.js |
index dfdf1eff11cb81ffa5a248ceddd33a42f15a5157..5fa60ba1d2dad60d8d099d4e2b5334eb04bfa1d0 100644 |
--- a/chrome/browser/resources/contextual_search/promo.js |
+++ b/chrome/browser/resources/contextual_search/promo.js |
@@ -12,3 +12,11 @@ window.onload = function() { |
$('container').classList.add('hide'); |
}); |
}; |
+ |
+/** |
+ * Method called from Chrome to properly size the view. |
huangs
2014/09/11 20:52:29
NIT: Mention what the method *does* before what it
Mathieu
2014/09/11 20:59:55
Done.
Mathieu
2014/09/11 20:59:55
Done.
|
+ * @return {number} The height of the content, in pixels. |
+ */ |
+function getContentHeight() { |
+ return $('container').clientHeight; |
+} |