| 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 7a53a64bac54c0e4129f34cdf29acddc88c260dc..4c0a877493bbef7ec04855652f57866dd5d9e42c 100644
|
| --- a/chrome/browser/resources/settings/settings_page/main_page_behavior.js
|
| +++ b/chrome/browser/resources/settings/settings_page/main_page_behavior.js
|
| @@ -59,14 +59,8 @@ var MainPageBehaviorImpl = {
|
| } else {
|
| doWhenReady(
|
| function() {
|
| - if (this.scrollHeight > 0)
|
| - return true;
|
| -
|
| - // Height is irrelevant if this page isn't the current page.
|
| - if (!settings.Route[this.route].contains(settings.getCurrentRoute()))
|
| - return true;
|
| -
|
| - return false;
|
| + return this.scrollHeight > 0 ||
|
| + !settings.Route[this.route].contains(settings.getCurrentRoute());
|
| }.bind(this),
|
| this.tryTransitionToSection_.bind(this));
|
| }
|
|
|