| Index: chrome/browser/resources/extensions/extension_options_overlay.js
|
| diff --git a/chrome/browser/resources/extensions/extension_options_overlay.js b/chrome/browser/resources/extensions/extension_options_overlay.js
|
| index 07684a98bef5cbc3f8f0e889039b4c9c808b894e..593407387c92883cf9af1c2aded9f72705745f02 100644
|
| --- a/chrome/browser/resources/extensions/extension_options_overlay.js
|
| +++ b/chrome/browser/resources/extensions/extension_options_overlay.js
|
| @@ -127,8 +127,14 @@ cr.define('extensions', function() {
|
| extensionoptions.onpreferredsizechanged = function(evt) {
|
| var oldWidth = parseInt(overlayStyle.width, 10);
|
| var oldHeight = parseInt(overlayStyle.height, 10);
|
| - var newWidth = Math.max(evt.width, minWidth);
|
| - var newHeight = Math.min(evt.height, maxHeight);
|
| + // The overlay must be slightly larger than the extension options to
|
| + // avoid creating scrollbars.
|
| + // TODO(paulmeyer): This shouldn't be necessary, but the preferred size
|
| + // (coming from Blink) seems to be too small for some zoom levels. The
|
| + // 2-pixel addition should be removed once this problem is investigated
|
| + // and corrected.
|
| + var newWidth = Math.max(evt.width + 2, minWidth);
|
| + var newHeight = Math.min(evt.height + 2, maxHeight);
|
|
|
| // animationTime is the amount of time in ms that will be used to resize
|
| // the overlay. It is calculated by multiplying the pythagorean distance
|
|
|