fix issue with popover size (Safari)