aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/display')
-rw-r--r--ext/js/display/sandbox/structured-content-generator.js2
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');