Fixed a bug where menus wouldn't always expand above the trigger when there's not enough room to show it below