Line wrappery.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@666 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -53,7 +53,8 @@ public class TextFieldUtil
|
|||||||
* the specified width.
|
* the specified width.
|
||||||
* @return true if truncation took place
|
* @return true if truncation took place
|
||||||
*/
|
*/
|
||||||
public static function setMaximumTextWidth (tf :TextField, width :Number, truncationString :String = "...") :Boolean
|
public static function setMaximumTextWidth (
|
||||||
|
tf :TextField, width :Number, truncationString :String = "...") :Boolean
|
||||||
{
|
{
|
||||||
if (tf.numLines > 1) {
|
if (tf.numLines > 1) {
|
||||||
// We only operate on single-line TextFields
|
// We only operate on single-line TextFields
|
||||||
|
|||||||
Reference in New Issue
Block a user