fix zooming on a marker when expanding the panel