Fixed #2542: fixed a bug of ccui.RichText that its setContentSize is invalid.

Fixed a bug of ccui.RichText that its setContentSize is invalid.