jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Context Menu with sub menu Context Menu with sub menu #69716

    Jose
    Participant

    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é


    Jose
    Participant

    Are there some update of this topic?

Viewing 2 posts - 1 through 2 (of 2 total)