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

Unified Diff: chrome/browser/resources/settings/settings_main/settings_main.js

Issue 2686863003: [MD settings] prevent scrolling contents due to floating point noise (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 51bb5f422fb7db5c411e7c39dc236072f6f8e1db..22b4bd86fb2766ef7145bfac11d076b95fbf0639 100644
--- a/chrome/browser/resources/settings/settings_main/settings_main.js
+++ b/chrome/browser/resources/settings/settings_main/settings_main.js
@@ -124,7 +124,8 @@ Polymer({
// How much of the overscroll is visible (may be negative).
var visibleOverscroll = overscroll.scrollHeight -
(overscrollBottom - visibleBottom);
- this.overscroll_ = Math.max(opt_minHeight || 0, visibleOverscroll);
+ this.overscroll_ =
+ Math.max(opt_minHeight || 0, Math.ceil(visibleOverscroll));
},
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698