summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2008-08-13 13:52:30 (GMT)
committer Stella Power2008-08-13 13:52:30 (GMT)
commit715dffaea6cbd85c2dd2436933e74f42397e3b58 (patch)
tree34b1bf475421b415e2d1b7d56bee69d616700645
parentd0f3521bbb7e68940cd158cd475b3c080a8a16ea (diff)
#294602: added workaround for IE6 not supporting the min-width CSS attribute.
-rw-r--r--js/lightbox.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/lightbox.js b/js/lightbox.js
index 628d8f8..55b6d18 100644
--- a/js/lightbox.js
+++ b/js/lightbox.js
@@ -25,6 +25,7 @@ var Lightbox = {
resizeSpeed: 'normal', // Controls the speed of the lightbox resizing animation.
fadeInSpeed: 'normal', // Controls the speed of the image and overlay appearance.
slideDownSpeed: 'slow', // Controls the speed of the image details appearance.
+ minWidth: 240,
borderSize : 10,
boxColor : 'fff',
fontColor : '000',
@@ -482,6 +483,8 @@ var Lightbox = {
// resizeContainer()
resizeContainer: function(imgWidth, imgHeight) {
+ imgWidth = (imgWidth < Lightbox.minWidth ? Lightbox.minWidth : imgWidth);
+
this.widthCurrent = $('#outerImageContainer').width();
this.heightCurrent = $('#outerImageContainer').height();