Updated constraint function.

Width and height no longer change.