Rotate if not connected, fix canvas size