Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Issue 2777013006: MD Settings: Prevent erroneous scroll when navigating subpage->subpage. (Closed)

Created:
3 years, 8 months ago by tommycli
Modified:
3 years, 8 months ago
Reviewers:
michaelpg
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Prevent erroneous scroll when navigating subpage->subpage. Currently, when collapsing a section, to another route that is part of a section, we scroll to the new section. This is not desirable for direct subpage->subpage navigations. This CL limits that scroll behavior to only when navigating to a section route (and not when navigating to a subpage route). BUG=705927 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2777013006 Cr-Commit-Position: refs/heads/master@{#460594} Committed: https://chromium.googlesource.com/chromium/src/+/ab92320fc8387be1c91c221223d7c632875a90b4

Patch Set 1 #

Total comments: 2

Patch Set 2 : address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M chrome/browser/resources/settings/settings_page/main_page_behavior.js View 1 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
tommycli
michaelpg: PTAL, thanks!
3 years, 8 months ago (2017-03-28 23:19:36 UTC) #3
michaelpg
lgtm w/ suggestion https://codereview.chromium.org/2777013006/diff/1/chrome/browser/resources/settings/settings_page/main_page_behavior.js File chrome/browser/resources/settings/settings_page/main_page_behavior.js (right): https://codereview.chromium.org/2777013006/diff/1/chrome/browser/resources/settings/settings_page/main_page_behavior.js#newcode290 chrome/browser/resources/settings/settings_page/main_page_behavior.js:290: !settings.getCurrentRoute().isSubpage() && I think this would ...
3 years, 8 months ago (2017-03-29 01:11:21 UTC) #6
tommycli
thanks! https://codereview.chromium.org/2777013006/diff/1/chrome/browser/resources/settings/settings_page/main_page_behavior.js File chrome/browser/resources/settings/settings_page/main_page_behavior.js (right): https://codereview.chromium.org/2777013006/diff/1/chrome/browser/resources/settings/settings_page/main_page_behavior.js#newcode290 chrome/browser/resources/settings/settings_page/main_page_behavior.js:290: !settings.getCurrentRoute().isSubpage() && On 2017/03/29 01:11:21, michaelpg wrote: > ...
3 years, 8 months ago (2017-03-29 16:27:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2777013006/20001
3 years, 8 months ago (2017-03-29 16:30:23 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/182501)
3 years, 8 months ago (2017-03-29 20:24:07 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2777013006/20001
3 years, 8 months ago (2017-03-29 22:05:06 UTC) #16
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 00:23:33 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/ab92320fc8387be1c91c221223d7...

Powered by Google App Engine
This is Rietveld 408576698