The 'onShow' event fires only when the top menu displays. If you want to change the default position of the menu, please try to set the 'position' function for the menu.
$('#mm').menu({
position: function(target,left,top){
return {left:left,top:top}
}
})