Resizing of canvas with window resize. #1258