Fixed panning for ShortestPathDialog