fix bug stopping canvas resize after device reorientation