bugfix to correct the coordinates after changing the zoom

by hiding and showing the canvas area we can reset the scrollbars and
thereby correct the coordinates after reinitializing the corresponding
function