I have a popup which i show on mouse down. Now i can press near the edges of the browser window or the screen and this popup shows, but it popus up with a big fraction of it out of the bowser window bounds or say screen blounds.
I would like to control this so that if i click near the edges, the popup is offset backwards relative to the edge and the mouse position.
I have looked every where but failed to achieve this. Any one has an idea?