Index: chrome/browser/resources/settings/settings_page/main_page_behavior.js |
diff --git a/chrome/browser/resources/settings/settings_page/main_page_behavior.js b/chrome/browser/resources/settings/settings_page/main_page_behavior.js |
index 130a2881cdca9fca8e0c2f5934194daa3c515c59..6289c4d9e124cd407e923d52aaabe71392bf2abd 100644 |
--- a/chrome/browser/resources/settings/settings_page/main_page_behavior.js |
+++ b/chrome/browser/resources/settings/settings_page/main_page_behavior.js |
@@ -346,7 +346,8 @@ var RoutableBehaviorImpl = { |
if (!element) |
return; |
- if (element.parentNode.host.scrollHeight == 0) { |
+ var host = findAncestor(element, function(n) { return n.host; }).host; |
michaelpg
2016/06/06 20:13:03
This is more complicated than necessary (this.scro
|
+ if (host.scrollHeight == 0) { |
setTimeout(pollForScrollHeight.bind(this), 100); |
return; |
} |