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

Issue 2201553002: [MD settings] only add overscroll if needed. (Closed)

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

Description

[MD settings] only add overscroll if needed. This CL changes the overscroll padding so that it will be empty (zero height) if no overscroll is needed to bring the selection to the top of the window. This Cl does not fix the overscroll during window resizing or hide the overscroll when scrolling up. Those will be in a future CL. BUG=631332 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/4570d5e8b6094ee45234dcf1ef12f984dcd55d6f Cr-Commit-Position: refs/heads/master@{#408847}

Patch Set 1 #

Total comments: 1

Patch Set 2 : closure fix #

Total comments: 2

Patch Set 3 : described math #

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

Messages

Total messages: 21 (14 generated)
dschuyler
https://codereview.chromium.org/2201553002/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/2201553002/diff/1/chrome/browser/resources/settings/settings_main/settings_main.js#newcode145 chrome/browser/resources/settings/settings_main/settings_main.js:145: Polymer.dom.flush(); I moved this to keep all the timeout/flush ...
4 years, 4 months ago (2016-07-30 00:46:29 UTC) #5
Dan Beam
https://codereview.chromium.org/2201553002/diff/20001/chrome/browser/resources/settings/settings_main/settings_main.js File chrome/browser/resources/settings/settings_main/settings_main.js (right): https://codereview.chromium.org/2201553002/diff/20001/chrome/browser/resources/settings/settings_main/settings_main.js#newcode176 chrome/browser/resources/settings/settings_main/settings_main.js:176: (topSection.offsetParent.offsetTop + topSection.offsetTop))); can you use some temporary variables ...
4 years, 4 months ago (2016-07-30 01:16:20 UTC) #10
dschuyler
https://codereview.chromium.org/2201553002/diff/20001/chrome/browser/resources/settings/settings_main/settings_main.js File chrome/browser/resources/settings/settings_main/settings_main.js (right): https://codereview.chromium.org/2201553002/diff/20001/chrome/browser/resources/settings/settings_main/settings_main.js#newcode176 chrome/browser/resources/settings/settings_main/settings_main.js:176: (topSection.offsetParent.offsetTop + topSection.offsetTop))); On 2016/07/30 01:16:20, Dan Beam wrote: ...
4 years, 4 months ago (2016-07-30 01:39:45 UTC) #13
Dan Beam
lgtm /cc michaelpg@
4 years, 4 months ago (2016-07-30 01:42:21 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/2201553002/40001
4 years, 4 months ago (2016-07-30 02:42:01 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-07-30 02:44:39 UTC) #19
commit-bot: I haz the power
4 years, 4 months ago (2016-07-30 02:46:15 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4570d5e8b6094ee45234dcf1ef12f984dcd55d6f
Cr-Commit-Position: refs/heads/master@{#408847}

Powered by Google App Engine
This is Rietveld 408576698