fix ResizeMode="NoResize"

Closes #1254