Fixing image viewer zoom (#61198)
This commit is contained in:
parent
9e83209ed5
commit
2f78e29ce5
1 changed files with 1 additions and 1 deletions
|
@ -414,7 +414,7 @@ class InlineImageView {
|
|||
|
||||
DOM.removeClass(image, 'scale-to-fit');
|
||||
image.style.minWidth = `${(image.naturalWidth * scale)}px`;
|
||||
image.style.widows = `${(image.naturalWidth * scale)}px`;
|
||||
image.style.width = `${(image.naturalWidth * scale)}px`;
|
||||
|
||||
const newWidth = image.width;
|
||||
const scaleFactor = (newWidth - oldWidth) / oldWidth;
|
||||
|
|
Loading…
Reference in a new issue