Make sure to set autoresizing masks.