mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix document max size calculation
This commit is contained in:
parent
6e7acf972b
commit
9aa6ea476f
1 changed files with 2 additions and 2 deletions
|
|
@ -329,8 +329,8 @@ kpxcFields.isVisible = function(field) {
|
|||
if (rect.x < 0
|
||||
|| rect.y < 0
|
||||
|| rect.width < 8
|
||||
|| rect.x > document.body.offsetWidth
|
||||
|| rect.y > document.body.offsetHeight
|
||||
|| rect.x > Math.max(document.body.scrollWidth, document.body.offsetWidth, document.documentElement.clientWidth)
|
||||
|| rect.y > Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight)
|
||||
|| rect.height < 8) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue