autoscroll,  canvas resize fix