comment out setSize to get simulator working