diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 483a28d62..912eac77a 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -12100,6 +12100,8 @@ scale = Math.min(1, maxWidth / width, maxHeight / height); el.style.maxWidth = "" + (scale * width) + "px"; el.style.maxHeight = "" + (scale * height) + "px"; + el.style.width = "" + width + "px"; + el.style.height = "" + height + "px"; return UI.hover({ root: this, el: el, diff --git a/builds/crx/script.js b/builds/crx/script.js index 2cc233a9d..115780880 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -12123,6 +12123,8 @@ scale = Math.min(1, maxWidth / width, maxHeight / height); el.style.maxWidth = "" + (scale * width) + "px"; el.style.maxHeight = "" + (scale * height) + "px"; + el.style.width = "" + width + "px"; + el.style.height = "" + height + "px"; return UI.hover({ root: this, el: el, diff --git a/src/Images/ImageHover.coffee b/src/Images/ImageHover.coffee index 82a518df8..6c348d047 100755 --- a/src/Images/ImageHover.coffee +++ b/src/Images/ImageHover.coffee @@ -52,8 +52,10 @@ ImageHover = maxWidth = Math.max left, doc.clientWidth - right maxHeight = doc.clientHeight - 16 scale = Math.min 1, maxWidth / width, maxHeight / height - el.style.maxWidth = "#{scale * width}px" + el.style.maxWidth = "#{scale * width}px" el.style.maxHeight = "#{scale * height}px" + el.style.width = "#{width}px" + el.style.height = "#{height}px" UI.hover root: @ el: el