Fix vertical resizing.