问题
I am using this contextMenu template: http://medialize.github.com/jQuery-contextMenu/index.html
and i would like to change the place where the menu appears, i mean i want it to ALWAYS Appear from the point i click to the bottom cause sometimes the lists contains lots of items and when its appears from the point clicked to upward Most of the list Disappear. i tried looking at the documentation and i came across the $.ui.position but i dont know if thats it and actually i didnt understand it.
Thanks In advance.
回答1:
$('.item').contextMenu('menu',{
onShowMenu: function(e, menu) {
e.pageX=100;
e.pageY=400;
return menu;
}
}
);
来源:https://stackoverflow.com/questions/13998244/jquery-contextmenu-dropdown