reset the width/height in resetTargetDimensions