How can I set the width of the image and have the height constrained to proportion?

The width and height proportions are always preserved during resize. The width and height you enter are just maximum values. Think of it as a virtual box. The image is resized to fit the box proportionally.