fix(macPopover): Fixed popover not changing from below to above when overflow