Add adjustLabel in setDimensions

Ref #671