update box size if necessary, because boxSizer might have returned a new value