Fixes the toolbar placement when zooming