1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

fixed menu width and window width

This commit is contained in:
Hiroyasu Nishiyama 2022-07-07 19:39:28 +09:00
parent 257b1f89f3
commit bd4a5ac844

View File

@ -154,9 +154,9 @@ RED.contextMenu = (function() {
}
var direction = "right";
var MENU_WIDTH = 600; // can not use menu width here
var MENU_WIDTH = 500; // can not use menu width here
if ((options.x -$(document).scrollLeft()) >
($(window).height() -MENU_WIDTH)) {
($(window).width() -MENU_WIDTH)) {
direction = "left";
}