We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f13d718 commit 00b5bfeCopy full SHA for 00b5bfe
lib/web/mage/collapsible.js
@@ -583,7 +583,7 @@ define([
583
_isElementOutOfViewport: function (elem) {
584
var rect = elem.getBoundingClientRect();
585
586
- return rect.bottom > window.innerHeight || rect.right < 0 || rect.left > window.innerWidth || rect.top < 0;
+ return rect.bottom < 0 || rect.right < 0 || rect.left > window.innerWidth || rect.top > window.innerHeight;
587
}
588
});
589
0 commit comments