Release #5636: Fix UI test setContentSize bugs