Skip to content

Commit f13d718

Browse files
committed
Revert "Changed logic so that _scrollToTopIfVisible is called only if element is in viewport. Previously it was called only when the element was outside it. Also changed the logic of _isElementOutOfViewport to work correctly."
This reverts commit b5f2357.
1 parent b5f2357 commit f13d718

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/web/mage/collapsible.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ define([
582582
*/
583583
_isElementOutOfViewport: function (elem) {
584584
var rect = elem.getBoundingClientRect();
585+
585586
return rect.bottom > window.innerHeight || rect.right < 0 || rect.left > window.innerWidth || rect.top < 0;
586587
}
587588
});

0 commit comments

Comments
 (0)