Constrain width/height to minmax values

Width and height were not being constrained to min/max values.

Adds a ConstrainByMinMax to ng_lenght_utils

This makes another ~10 tests pass.

BUG=635619

Review-Url: https://codereview.chromium.org/2643043003
Cr-Commit-Position: refs/heads/master@{#445201}
5 files changed