I'm not sure whether or not this has been asked but I'll ask the question nonetheless. I have a button to which I have tied a contextmenu. I would like the contextmenu to be align at the bottom of the button with the top right corner aligned to the bottom right of the button. As far as I can tell this behavior is not supported by the contextmenu API. I have managed to get a workaround working:
This workaround is not ideal since the repositioning of the contextmenu wrapper is done in the open event and you can see the contextmenu move from the original position to the adjusted position. Is there a better way to this?