replace adjustWidth/Height by adjustUnit