Setting width/height also sets explicitWidth/Height and thus affects the
result of getExplicitOrMeasuredWidth/Height.  Anywhere a component is
used in measure(), you should see that component sized via
setActualSize.  Things that aren't measured like some skins sometimes
just have their width/height set.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Sheriff
Sent: Monday, November 19, 2007 1:24 PM
To: [email protected]
Subject: [flexcoders] setActualSize()

 

is there a difference when overriding the updateDisplayList() between
doing

canvas.setActualSize(unscaledWidth,unscaledHeight) 

 and canvas.width = unscaledWidth, canvas.Height =unscaledHeight

I am looking at some code from the flexLib and some times they do the
setActualSize() and some times they do the .width is it just a
preference?

 

________________________________

Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See
how. <http://us.rd.yahoo.com/evt=51732/*http:/overview.mail.yahoo.com/> 

 

Reply via email to