Proper way to set view frame.