Fix right edge problems in popover