From 1f184256dc399159702f8107113e489feb5c7adb Mon Sep 17 00:00:00 2001 From: varjolintu Date: Wed, 1 Oct 2025 07:09:25 +0300 Subject: [PATCH] Fix the logical error in isElementInside() --- keepassxc-browser/common/global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keepassxc-browser/common/global.js b/keepassxc-browser/common/global.js index 9a4865f..3a475b0 100755 --- a/keepassxc-browser/common/global.js +++ b/keepassxc-browser/common/global.js @@ -195,7 +195,7 @@ const getCurrentTab = async function() { }; // Check if element b is inside a -const isElementInside = (a, b) => (b.x >= a.x || b.right <= a.right) && (b.y >= a.y || b.bottom <= a.bottom); +const isElementInside = (a, b) => (b.x >= a.x && b.right <= a.right) && (b.y >= a.y && b.bottom <= a.bottom); // Check if two elements overlap const elementsOverlap = function(rect1, rect2) {