Don't resize hvbox smaller than minwidth/minheight

The old code does not respect minwidth/minheight, such that a box can be smaller than its min size.
This should fix #418, please check the new behaviour, see if it is ok.