Use setFrame: instead of setSize: to set size

setSize: has obnoxious failures