summaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/popup.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index 138dec41..86ce575d 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -91,13 +91,15 @@ class Popup {
}
}
+ const preferBelow = (optionsGeneral.popupHorizontalTextPosition === 'below');
+
const verticalOffset = optionsGeneral.popupVerticalOffset;
const [y, h, below] = Popup.limitGeometry(
elementRect.top - verticalOffset,
elementRect.bottom + verticalOffset,
height,
maxHeight,
- true
+ preferBelow
);
return [x, y, width, h, below];