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

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

Issue 1974193002: MD Settings: fix overflow scrolling for <settings-dialog> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-polish3
Patch Set: nit Created 4 years, 7 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
Index: chrome/browser/resources/settings/settings_dialog.js
diff --git a/chrome/browser/resources/settings/settings_dialog.js b/chrome/browser/resources/settings/settings_dialog.js
index 888ae0d4c5cc5df61b9a4919539ac91877657e0f..85bdc03742c4c5fa3fe71ac0a4057a213cd2683b 100644
--- a/chrome/browser/resources/settings/settings_dialog.js
+++ b/chrome/browser/resources/settings/settings_dialog.js
@@ -30,6 +30,16 @@ Polymer({
behaviors: [Polymer.PaperDialogBehavior],
+ /** @override */
+ center: function() {
+ Polymer.IronFitBehavior.center.call(this);
+
+ this.$$('.body-container').style.maxHeight = this.offsetHeight -
+ (this.$$('.title-container').offsetHeight +
+ this.$$('.button-container').offsetHeight +
+ this.$$('.footer-container').offsetHeight) + 'px';
Dan Beam 2016/05/13 01:42:40 Do you hate this? (y/n) _
dpapad 2016/05/13 18:14:03 Well, it is a bit complicated at first sight. My m
dpapad 2016/05/13 18:20:33 FYI regarding the clipping issue, I had filed http
Dan Beam 2016/05/17 19:26:12 fixed
+ },
+
/** @return {!PaperIconButtonElement} */
getCloseButton: function() {
return this.$.close;

Powered by Google App Engine
This is Rietveld 408576698