Since it was not really possible to change the positioning of the menu, I removed the button's tooltip and instead used CSS to create a DIV element which behaved exactly like a tooltip, containing the original tooltip's text. That way, I could control the element's position and ensure no elements are hidden. The element was also styled to resemble a typical browser tooltip.