added contraintoviewport checkbox