Bug 421482 - UX: No context menu!
- Improved positioning of context menu and dropdown menu
- Refactored positioning code

--Signed-off-by: Elijah El-Haddad <elijahe@ca.ibm.com>