make window automatically resize the graphics display to ensure sources draw properly