Skip to content

Commit

Permalink
Mask: Added comment (following code review)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald committed Aug 20, 2009
1 parent b7ec30e commit 033bca1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widgets/mask/mask.js
Expand Up @@ -161,6 +161,7 @@
// hide the mask so our measurement doesn't include the mask
that.maskElement.hide();

// the new height should be the size of the window or the size of the document, whatever's biggest
var newHeight = that.opts.disableScroll ? noScrollContainer.height() : Math.max( win.height(), doc.height() ),
newWidth = that.opts.disableScroll ? noScrollContainer.width() : Math.max( win.width(), doc.width() );

Expand Down

0 comments on commit 033bca1

Please sign in to comment.