mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updated how suggestions work and display
- Always showing suggested tab in tablist - Fixed issue with contextmenu going all wonky when opened on suggested elements
This commit is contained in:
@@ -203,13 +203,13 @@ function contextListener(that, e) {
|
||||
$("#context-menu-overlay").removeClass("hide");
|
||||
var left = e.pageX - $(".context-menu-root").width() / 2;
|
||||
var top = e.pageY;
|
||||
if(left + $(".context-menu-root").width() > $(window).width()) {
|
||||
left = $(window).width() - $(".context-menu-root").width() - 15;
|
||||
if(left + 200 > $(window).width()) {
|
||||
left = $(window).width() - 200 - 15;
|
||||
} else if (left < 0) {
|
||||
left = 11;
|
||||
}
|
||||
if(top + $(".context-menu-root").width() > $(window).height()) {
|
||||
top = $(window).height() - $(".context-menu-root").height() - 15;
|
||||
if(top + 96 > $(window).height()) {
|
||||
top = $(window).height() - 96 - 15;
|
||||
} else if(top < 0) {
|
||||
top = 15;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user