Skip to content

Commit a65ecd9

Browse files
author
Ihor Melnychenko
committed
MAGETWO-27300: Category menu items go out of screen when page side is reached
- fixed delay function and improved sub-menu reverse
1 parent aec0ab0 commit a65ecd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ define([
345345
ulElementWidth = target.find('ul').outerWidth(true);
346346
width = target.outerWidth() * 2;
347347
targetPageX = target.offset().left;
348-
rightBound = screen.width;
348+
rightBound = $(window).width();
349349

350350
if ((ulElementWidth + width + targetPageX) > rightBound) {
351351
ulElement.addClass('submenu-reverse');

0 commit comments

Comments
 (0)