diff --git a/ext/zoom/theme.php b/ext/zoom/theme.php index 1e634997..0c95f5a7 100644 --- a/ext/zoom/theme.php +++ b/ext/zoom/theme.php @@ -24,7 +24,8 @@ img.parentNode.insertBefore(msg_div, img); orig_width = ""; function scale(img) { - if(img.style.width != "90%") { + // element.clientWidth is not part of the JS standard :( + if(img.style.width != "90%" && (img.clientWidth >= img.parentNode.clientWidth * 0.9)) { origwidth = img.style.width; img.style.width = "90%"; msg_div.style.display = "block";