From 0be94135fa5ff63cb52b1e3a182aba1eef5c0ca0 Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Sat, 27 May 2023 19:18:31 +0800 Subject: [PATCH] Fix positioning of the overlayer --- paginator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paginator.js b/paginator.js index 3b1a1c1..4aa780a 100644 --- a/paginator.js +++ b/paginator.js @@ -312,8 +312,8 @@ class View { this.document.documentElement.style[side] = `${this.#size}px` if (this.#overlayer) { this.#overlayer.element.style.margin = '0' - this.#overlayer.element.style.left = this.#vertical ? '0' : this.#size - this.#overlayer.element.style.top = this.#vertical ? this.#size : '0' + this.#overlayer.element.style.left = this.#vertical ? '0' : `${this.#size}px` + this.#overlayer.element.style.top = this.#vertical ? `${this.#size}px` : '0' this.#overlayer.element.style[side] = `${expandedSize}px` this.#overlayer.redraw() }