Fixed the issue with the context menu falling off the bottom of the screen when in conjuction with the treeview control