Contextmenu positioning made absolute

Changed the positioning to behave like a native contextmenu when scrolling.
Also modified a bit the calculation to calculate the correct "top" and "left" to work correctly with the absolute positioning.