From 7852cec48a71892fcd4398974618d8408b71ad4d Mon Sep 17 00:00:00 2001 From: roytam1 Date: Tue, 9 Nov 2021 21:19:43 +0800 Subject: [PATCH] [Pale-Moon] make sure anchor.top is not smaller than zero --- application/palemoon/modules/FormValidationHandler.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/palemoon/modules/FormValidationHandler.jsm b/application/palemoon/modules/FormValidationHandler.jsm index 387c221d74..5a2b07c004 100644 --- a/application/palemoon/modules/FormValidationHandler.jsm +++ b/application/palemoon/modules/FormValidationHandler.jsm @@ -124,7 +124,7 @@ var FormValidationHandler = let tabBrowser = aWindow.gBrowser; this._anchor = tabBrowser.popupAnchor; this._anchor.left = aPanelData.contentRect.left; - this._anchor.top = aPanelData.contentRect.top; + this._anchor.top = Math.max(0, aPanelData.contentRect.top); this._anchor.width = aPanelData.contentRect.width; this._anchor.height = aPanelData.contentRect.height; this._anchor.hidden = false;