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:
parent
257b1f89f3
commit
bd4a5ac844
@ -154,9 +154,9 @@ RED.contextMenu = (function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var direction = "right";
|
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()) >
|
if ((options.x -$(document).scrollLeft()) >
|
||||||
($(window).height() -MENU_WIDTH)) {
|
($(window).width() -MENU_WIDTH)) {
|
||||||
direction = "left";
|
direction = "left";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user