fix pointer centering when the popup has padding