Autodetect inflate window size by default