Issue #5600: Fixed a bug about setContentSize

Fixed a bug about setContentSize