update auto height