| 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 6a02acd2c1b1bec4034f905809b4b105720fb183..96631d9d41912865129829a8419f3574be9399ab 100644
|
| --- a/chrome/browser/resources/settings/settings_page/main_page_behavior.js
|
| +++ b/chrome/browser/resources/settings/settings_page/main_page_behavior.js
|
| @@ -42,8 +42,11 @@ var MainPageBehaviorImpl = {
|
| !!oldRoute && !!oldRoute.parent && !!oldRoute.section &&
|
| oldRoute.parent.section != oldRoute.section;
|
|
|
| - // Always scroll to the top if navigating from a section to the root route.
|
| - if (oldRouteWasSection && newRoute == settings.Route.BASIC) {
|
| + // Always scroll to the top if navigating from a section to the root route
|
| + // or when navigating to the About page.
|
| + if (this.scroller &&
|
| + ((oldRouteWasSection && newRoute == settings.Route.BASIC) ||
|
| + newRoute == settings.Route.ABOUT)) {
|
| this.scroller.scrollTop = 0;
|
| return;
|
| }
|
|
|