Fixing image viewer zoom (#61198)

This commit is contained in:
Robert Balent 2018-10-17 22:56:59 -07:00 committed by Benjamin Pasero
parent 9e83209ed5
commit 2f78e29ce5

View file

@ -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;