smarter fix for IE
This commit is contained in:
@@ -994,9 +994,11 @@ function showbigimage(i) {
|
||||
'<img id="imagesingle" src="'+mediumstr+'"></a></div>');
|
||||
$('#imagesingle').css('max-width',width);
|
||||
$('#imagesingle').css('max-height',height);
|
||||
if ($.browser.msie) { // IE does not work with max*
|
||||
$('#imagesingle').css('width','auto');
|
||||
$('#imagesingle').css('height',height);
|
||||
}
|
||||
}
|
||||
$('#imagecontainer').css('height',height);
|
||||
|
||||
$('#desccontainer').html(getProgressEl()+currentlink(i)+imagedesc[i]);
|
||||
@@ -1070,8 +1072,11 @@ 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)"); FIX for IE
|
||||
if ($.browser.msie) {
|
||||
$('#desccontainer').css('background-color',"rgb(255,255,255)");
|
||||
} else {
|
||||
$('#desccontainer').css('background-color',"rgba(255,255,255,0)");
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user