Skip to content

Commit e16cd11

Browse files
authored
Merge pull request #665 from so-susa/master
A context menu appears outside the screen Under certain conditions
2 parents d49ead2 + 5f5f916 commit e16cd11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.contextMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@
15781578
});
15791579
} else if(($menuOffset.top < winScrollTop) || ($menuOffset.top + menuHeight > winScrollTop + winHeight)){
15801580
$menu.css({
1581-
'top': '0px'
1581+
'top': winScrollTop + 'px'
15821582
});
15831583
}
15841584
}

0 commit comments

Comments
 (0)