Permalink
Browse files

Fixed width bug

  • Loading branch information...
1 parent 796003b commit d4dcb2502aab88c9a3b34454d0ad265eeb203f1e exby committed May 24, 2009
Showing with 2 additions and 0 deletions.
  1. +1 −0 CHANGELOG
  2. +1 −0 modalbox.js
View
@@ -1,3 +1,4 @@
+ * Fixed width bug on window resize
* Prototype updated to 1.6.0.3
* Fixed initial opacity set to 0 for overlay element
View
@@ -177,6 +177,7 @@ Modalbox.Methods = {
var cHeight = $(this.MBcontent).getHeight();
var newHeight = ((wHeight - hHeight + byHeight) < cHeight) ? (cHeight + hHeight) : (wHeight + byHeight);
var newWidth = wWidth + byWidth;
+ this.options.width = newWidth;
if(options) this.setOptions(options); // Passing callbacks
if(this.options.transitions) {
new Effect.Morph(this.MBwindow, {

0 comments on commit d4dcb25

Please sign in to comment.