Set window size instead of canvas size when style is set
Add methods to set window size