mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	fix display direction of context sub-menu
This commit is contained in:
		@@ -152,8 +152,16 @@ RED.contextMenu = (function() {
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        var direction = "right";
 | 
			
		||||
        var MENU_WIDTH = 600; // can not use menu width here
 | 
			
		||||
        if ((options.x -$(document).scrollLeft()) >
 | 
			
		||||
            ($(window).height() -MENU_WIDTH)) {
 | 
			
		||||
            direction = "left";
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        menu = RED.menu.init({
 | 
			
		||||
            direction: 'right',
 | 
			
		||||
            direction: direction,
 | 
			
		||||
            onpreselect: function() {
 | 
			
		||||
                disposeMenu()
 | 
			
		||||
            },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user