| Index: chrome/browser/resources/settings/settings_main/settings_main.js
|
| diff --git a/chrome/browser/resources/settings/settings_main/settings_main.js b/chrome/browser/resources/settings/settings_main/settings_main.js
|
| index 408b68c55cad19cff860a9e067d7ee0d64d42732..491457067b3a0e16a77c1dab8e7ed5176c532ac2 100644
|
| --- a/chrome/browser/resources/settings/settings_main/settings_main.js
|
| +++ b/chrome/browser/resources/settings/settings_main/settings_main.js
|
| @@ -137,7 +137,7 @@ Polymer({
|
|
|
| /** @protected */
|
| currentRouteChanged: function(newRoute) {
|
| - this.inSubpage_ = newRoute.subpage.length > 0;
|
| + this.inSubpage_ = newRoute.isSubpage();
|
| this.style.height = this.inSubpage_ ? '100%' : '';
|
|
|
| if (settings.Route.ABOUT.contains(newRoute)) {
|
| @@ -176,7 +176,7 @@ Polymer({
|
| */
|
| overscrollHeight_: function() {
|
| var route = settings.getCurrentRoute();
|
| - if (route.subpage.length != 0 || this.showPages_.about)
|
| + if (route.isSubpage() || this.showPages_.about)
|
| return 0;
|
|
|
| var query = 'settings-section[section="' + route.section + '"]';
|
|
|