fix NaN issue when paddingLeft is empty