diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-07-22 18:11:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 18:11:46 -0400 |
commit | 73f06a3fa087af164c54b57b2d92466d689d107e (patch) | |
tree | d3105b40848cf3465ebf4e15732872bbc1748487 /ext/js/display/sandbox | |
parent | 2d367140938f6501430c6fcb96faef797e75789c (diff) |
Fix definition image aspect ratio issue (#1847)
* Fix incorrect aspect ratio
* Update test data
Diffstat (limited to 'ext/js/display/sandbox')
-rw-r--r-- | ext/js/display/sandbox/structured-content-generator.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/display/sandbox/structured-content-generator.js b/ext/js/display/sandbox/structured-content-generator.js index 833df6f6..f0e70c4d 100644 --- a/ext/js/display/sandbox/structured-content-generator.js +++ b/ext/js/display/sandbox/structured-content-generator.js @@ -91,7 +91,7 @@ class StructuredContentGenerator { const usedWidth = ( hasPreferredWidth ? preferredWidth : - (hasPreferredHeight ? preferredHeight * invAspectRatio : width) + (hasPreferredHeight ? preferredHeight / invAspectRatio : width) ); const node = this._createElement('a', 'gloss-image-link'); |