add updateDimensions with padding top and left