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

Unified Diff: chrome/browser/resources/extensions/extensions.js

Issue 22859067: Revert r217952 to make behavior of horizontal scroll bar in page chrome://extensions keep consisten… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 | « chrome/browser/resources/extensions/extensions.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/extensions/extensions.js
diff --git a/chrome/browser/resources/extensions/extensions.js b/chrome/browser/resources/extensions/extensions.js
index b1d5a575d7bbddc1a6c8fafb85b2b01c3bf67db3..f71292ea4a8c66ebbda3bfbf0e75cb12d7bea9af 100644
--- a/chrome/browser/resources/extensions/extensions.js
+++ b/chrome/browser/resources/extensions/extensions.js
@@ -356,6 +356,15 @@ cr.define('extensions', function() {
* are hidden.
*/
ExtensionSettings.showOverlay = function(node) {
+ var pageDiv = $('extension-settings');
+ if (node) {
+ pageDiv.style.width = window.getComputedStyle(pageDiv).width;
+ document.body.classList.add('no-scroll');
+ } else {
+ document.body.classList.remove('no-scroll');
+ pageDiv.style.width = '';
+ }
+
var currentlyShowingOverlay = ExtensionSettings.getCurrentOverlay();
if (currentlyShowingOverlay)
currentlyShowingOverlay.classList.remove('showing');
« no previous file with comments | « chrome/browser/resources/extensions/extensions.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698