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'); |