protected override void UpgradeFrom265 ()
{
ProcessText(true);
if (mShrinkToFit)
{
overflowMethod = Overflow.ShrinkContent;
mMaxLineCount = 0;
}
if (mMaxLineWidth != 0)
{
width = mMaxLineWidth;
overflowMethod = mMaxLineCount > 0 ? Overflow.ResizeHeight : Overflow.ShrinkContent;
}
else overflowMethod = Overflow.ResizeFreely;
if (mMaxLineHeight != 0)
height = mMaxLineHeight;
if (mFont != null)
{
int min = Mathf.RoundToInt(mFont.defaultSize * mFont.pixelSize);
if (height < min) height = min;
}
mMaxLineWidth = 0;
mMaxLineHeight = 0;
mShrinkToFit = false;
if (GetComponent<BoxCollider>() != null)
NGUITools.AddWidgetCollider(gameObject, true);
}