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

Issue 2228783005: MD Settings: Never underscroll (Closed)

Created:
4 years, 4 months ago by michaelpg
Modified:
4 years, 4 months ago
Reviewers:
dschuyler
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@RefactorMainPageBehavior2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Never underscroll Changing the overscroll amount can force the page to scroll unexpectedly. Never change the overscroll to less than the current visible overscroll. R=dschuyler@chromium.org BUG=634582 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/59ce449c58b384906bcd2c0c66826c6ce69ad047 Cr-Commit-Position: refs/heads/master@{#413058}

Patch Set 1 #

Total comments: 8

Patch Set 2 : comments #

Patch Set 3 : rebase #

Patch Set 4 : changes #

Patch Set 5 : rebase #

Total comments: 2

Patch Set 6 : distance #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -16 lines) Patch
M chrome/browser/resources/settings/settings_main/settings_main.js View 1 2 3 4 5 3 chunks +22 lines, -16 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 25 (12 generated)
michaelpg
PTAL. This is soooo much simpler than the event-based freeze/unfreeze/recalc logic I had played with ...
4 years, 4 months ago (2016-08-09 23:05:00 UTC) #3
dschuyler
lgtm Nice!
4 years, 4 months ago (2016-08-09 23:24:29 UTC) #4
Dan Beam
https://codereview.chromium.org/2228783005/diff/1/chrome/browser/resources/settings/settings_main/settings_main.js File chrome/browser/resources/settings/settings_main/settings_main.js (right): https://codereview.chromium.org/2228783005/diff/1/chrome/browser/resources/settings/settings_main/settings_main.js#newcode96 chrome/browser/resources/settings/settings_main/settings_main.js:96: * @param {number=} minHeight The minimum overscroll height needed. ...
4 years, 4 months ago (2016-08-09 23:26:40 UTC) #6
michaelpg
https://codereview.chromium.org/2228783005/diff/1/chrome/browser/resources/settings/settings_main/settings_main.js File chrome/browser/resources/settings/settings_main/settings_main.js (right): https://codereview.chromium.org/2228783005/diff/1/chrome/browser/resources/settings/settings_main/settings_main.js#newcode96 chrome/browser/resources/settings/settings_main/settings_main.js:96: * @param {number=} minHeight The minimum overscroll height needed. ...
4 years, 4 months ago (2016-08-09 23:46:09 UTC) #7
dschuyler
https://codereview.chromium.org/2228783005/diff/1/chrome/browser/resources/settings/settings_main/settings_main.js File chrome/browser/resources/settings/settings_main/settings_main.js (right): https://codereview.chromium.org/2228783005/diff/1/chrome/browser/resources/settings/settings_main/settings_main.js#newcode186 chrome/browser/resources/settings/settings_main/settings_main.js:186: return Math.max(0, this.parentNode.scrollHeight - heightOfShownSections); On 2016/08/09 23:46:09, michaelpg ...
4 years, 4 months ago (2016-08-10 00:06:26 UTC) #8
michaelpg
CL grew, but the net is unchanged. Fixed a couple bugs and converted (this.parentNode) and ...
4 years, 4 months ago (2016-08-10 03:12:27 UTC) #9
michaelpg
PTAL: I had to deal with closure stuff, so I moved the new stuff to ...
4 years, 4 months ago (2016-08-10 03:52:05 UTC) #10
dschuyler
https://codereview.chromium.org/2228783005/diff/80001/chrome/browser/resources/settings/settings_main/settings_main.js File chrome/browser/resources/settings/settings_main/settings_main.js (right): https://codereview.chromium.org/2228783005/diff/80001/chrome/browser/resources/settings/settings_main/settings_main.js#newcode181 chrome/browser/resources/settings/settings_main/settings_main.js:181: var distanceToBottom = this.$.overscroll.offsetTop - sectionTop; Let's make this ...
4 years, 4 months ago (2016-08-10 17:00:16 UTC) #11
michaelpg
https://codereview.chromium.org/2228783005/diff/80001/chrome/browser/resources/settings/settings_main/settings_main.js File chrome/browser/resources/settings/settings_main/settings_main.js (right): https://codereview.chromium.org/2228783005/diff/80001/chrome/browser/resources/settings/settings_main/settings_main.js#newcode181 chrome/browser/resources/settings/settings_main/settings_main.js:181: var distanceToBottom = this.$.overscroll.offsetTop - sectionTop; On 2016/08/10 17:00:16, ...
4 years, 4 months ago (2016-08-15 16:41:48 UTC) #13
dschuyler
lgtm
4 years, 4 months ago (2016-08-16 02:09:55 UTC) #18
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/2228783005/120001
4 years, 4 months ago (2016-08-19 04:45:06 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-08-19 05:41:40 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 05:42:49 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/59ce449c58b384906bcd2c0c66826c6ce69ad047
Cr-Commit-Position: refs/heads/master@{#413058}

Powered by Google App Engine
This is Rietveld 408576698