mirror of
https://github.com/unraid/webgui.git
synced 2026-03-06 00:18:57 -06:00
Fix: keep context menu contained in browser window
This commit is contained in:
@@ -133,7 +133,7 @@ var context = context || (function () {
|
||||
if (typeof options.above == 'boolean') {
|
||||
place_above = options.above;
|
||||
} else if (typeof options.above == 'string' && options.above == 'auto') {
|
||||
place_above = ((e.pageY + $dd.height() + 32) > $(document).height());
|
||||
place_above = ((e.pageY + $dd.height() + 32) > $(window).height() + $(document).scrollTop());
|
||||
}
|
||||
|
||||
if (place_above) {
|
||||
|
||||
Reference in New Issue
Block a user