From 85472d9407861f688e55b06b1767882f71229fc2 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 31 Aug 2019 11:56:12 -0400 Subject: Add option for position of popup for horizontal text --- ext/fg/js/popup.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/fg/js') 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]; -- cgit v1.2.3