Skip to content

Commit 00b5bfe

Browse files
committed
_isElementOutOfViewport reverted back to how it was. The original logic worked correctly
1 parent f13d718 commit 00b5bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/collapsible.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ define([
583583
_isElementOutOfViewport: function (elem) {
584584
var rect = elem.getBoundingClientRect();
585585

586-
return rect.bottom > window.innerHeight || rect.right < 0 || rect.left > window.innerWidth || rect.top < 0;
586+
return rect.bottom < 0 || rect.right < 0 || rect.left > window.innerWidth || rect.top > window.innerHeight;
587587
}
588588
});
589589

0 commit comments

Comments
 (0)