Hello JQWidgets team,
I have an issue on contextmenu when the submenu is opened.
I have a button, and in the onclick event I open the contextmenu in a fixed position: button bottom-right position. When I open a submenu is opened closed the left-top corner of the document. The submenu is opened as if the contextmenu was set at the position (top: 0, left: 0) and this is not true. There is some way to fix this issue?
var contextmenu = $("#contextmenu").jqxMenu({ width: 190, theme: 'metro', autoOpenPopup: false, mode: 'popup'});
var scrollTop = $("#button").position().top + $("#button").height();
var scrollLeft = $("#button").position().left - (contextmenu.width() - $("#button").width());
contextmenu.jqxMenu('setItemOpenDirection', 'LinkTasks', 'right', 'up');
contextmenu.jqxMenu('open', scrollLeft, scrollTop);
Thanks,
José