Add a height constraint so window doesn't resize 1px.
Designate app delegate as the window delegate.