Welcome,
Guest
. Please
login
or
register
.
December 07, 2024, 06:34:24 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How to get the actual width of UILable when ResizeHeight model?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to get the actual width of UILable when ResizeHeight model? (Read 2147 times)
xiaoniaojjj
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 140
How to get the actual width of UILable when ResizeHeight model?
«
on:
May 10, 2014, 01:09:06 AM »
How to get the actual width of UILable when ResizeHeight model?
Or calculate the width.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: How to get the actual width of UILable when ResizeHeight model?
«
Reply #1 on:
May 10, 2014, 01:34:53 AM »
label.width?
Logged
xiaoniaojjj
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 140
Re: How to get the actual width of UILable when ResizeHeight model?
«
Reply #2 on:
May 10, 2014, 04:29:20 AM »
When i set the OverFlow is ResizeHeight, the label.width always is Dimensions's width.
But i want to get the "W1" , see the picture.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: How to get the actual width of UILable when ResizeHeight model?
«
Reply #3 on:
May 10, 2014, 11:56:24 PM »
Ah, NGUIText.CalculatePrintedSize
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How to get the actual width of UILable when ResizeHeight model?