Fix Auto Panning for Popups