Merge "Fix rounding error related to autoSize" into pi-dev