Support => NGUI 3 Support => Topic started by: Wisteso on December 22, 2016, 01:11:09 PM
Title: Using overflow ellipsis with 'resize freely' + 'max width'
Post by: Wisteso on December 22, 2016, 01:11:09 PM
I am using a UITable to center a combination of UISprite + UILabel within a 180 width region. This means that I cannot use 'clamp' content since it won't change the bounds of the text, making the content centering behavior of UITable not possible.
I do also want the ellipses for when the text hits the limits of the space (which I set using MaxWidth of 144), so I looked at UILabel and saw that at line 1337, there is the following code...
bool fits = NGUIText.WrapText(printedText, out mProcessedText, true, false,
bool fits = NGUIText.WrapText(printedText, out mProcessedText, true, false,
mOverflowEllipsis);
and it appears to be working perfectly (aside from the fact that I cant toggle the ellipses easily in the inspector). Does this seem like a fairly safe change?
Title: Re: Using overflow ellipsis with 'resize freely' + 'max width'
Post by: ArenMook on December 24, 2016, 11:21:12 PM