/**
* Set Dimensions of cc.LabelTTF, the dimension is the maximum size of the label, set it so that label will automatically change lines when necessary.
* @param {cc.Size|Number} dim dimensions or width of dimensions
* @param {Number} [height] height of dimensions
*/
setDimensions: function(dim, height) {var width;
if (height === undefined) {
width = dim.width;
height = dim.height;
} else
width = dim;
if (width !== this._dimensions.width || height !== this._dimensions.height) {
this._dimensions.width = width;
this._dimensions.height = height;
this._updateString();
// Force updatethis._setUpdateTextureDirty();
}
},