| 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 254f2614a20cbdb195c39564ef9c5b7137b97d2e..4364f49ccf4e898cac8d44784917f6d10abb5228 100644
|
| --- a/chrome/browser/resources/settings/settings_main/settings_main.js
|
| +++ b/chrome/browser/resources/settings/settings_main/settings_main.js
|
| @@ -114,15 +114,23 @@ Polymer({
|
|
|
| this.showAboutPage_ = newRoute.page == 'about';
|
|
|
| - this.showAdvancedToggle_ = !this.showAboutPage_ && !isSubpage;
|
| + this.showAdvancedToggle_ = !this.showAboutPage_;
|
|
|
| - this.showBasicPage_ = this.showAdvancedToggle_ || newRoute.page == 'basic';
|
| + this.showBasicPage_ = !this.showAboutPage_;
|
|
|
| - this.showAdvancedPage_ =
|
| + this.showAdvancedPage_ = this.showAdvancedPage_ ||
|
| (this.isAdvancedMenuOpen_ && this.showAdvancedToggle_) ||
|
| newRoute.page == 'advanced';
|
| + },
|
| +
|
| + subpageExpanded_: function() {
|
| + this.showBasicPage_ = this.currentRoute.page == 'basic';
|
| + this.showAdvancedPage_ = !this.showBasicPage_;
|
| + this.showAdvancedToggle_ = false;
|
| + },
|
|
|
| - this.style.height = isSubpage ? '100%' : '';
|
| + subpageCollapsing_: function() {
|
| + this.currentRouteChanged_(this.currentRoute);
|
| },
|
|
|
| /** @private */
|
|
|