From f59f845915c059b2c9a713319d896e1d31c8ba68 Mon Sep 17 00:00:00 2001 From: q Date: Thu, 5 Jul 2012 22:07:19 +0300 Subject: [PATCH] fixes for IE9, may change --- galleryscript.js | 7 +++++-- gallerystyle.css | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/galleryscript.js b/galleryscript.js index 71346ae..e7bbbb8 100644 --- a/galleryscript.js +++ b/galleryscript.js @@ -994,6 +994,8 @@ function showbigimage(i) { ''); $('#imagesingle').css('max-width',width); $('#imagesingle').css('max-height',height); + $('#imagesingle').css('width','auto'); + $('#imagesingle').css('height',height); } $('#imagecontainer').css('height',height); @@ -1005,7 +1007,7 @@ function showbigimage(i) { var options = { zoomType: 'innerzoom', preloadImages: false, - alwaysOn:true, + alwaysOn:true }; $('#imagesingle').css('width',width); $('#imagesingle').css('height',height); @@ -1068,7 +1070,8 @@ function preloadcheck() { $('#desccontainer').css('background-color',"rgb("+colorValue+","+colorValue+","+colorValue+")"); if (imgs.length==completed) { clearInterval(preloader); - $('#desccontainer').css('background-color',"rgba(255,255,255,0)"); + //$('#desccontainer').css('background-color',"rgba(255,255,255,0)"); FIX for IE + $('#desccontainer').css('background-color',"rgb(255,255,255)"); } return; } diff --git a/gallerystyle.css b/gallerystyle.css index 03fbdd1..3dbf780 100644 --- a/gallerystyle.css +++ b/gallerystyle.css @@ -238,6 +238,7 @@ iframe { margin-left:0; margin-bottom: -16px; margin-top: 1px; + z-index: -1; } .zoomPad{