Redraw and adjust dots when resize
First version of canvas size recalculation