Box layout problems with preferred/min/max sizes