close #2: enable canvas size change