- Paulus
----- Original Message ----
From: Manish Jethani <[EMAIL PROTECTED]>
To: [email protected]
Sent: Fri Jun 24 05:46:55 2005
Subject: Re: [flexcoders] Re: question about image cellrenderer in flex samples explorer
On 6/23/05, bhaq1972 <[EMAIL PROTECTED]> wrote:
> One follow up question. I'm trying to reposition the image to the
> centre of the datagrid column using the following code in my
> imagecellrenderer
>
> function size(Void) : Void
> {
> //image is id of my mx:Image
> image.setSize(20, layoutHeight);
> image._x = (layoutWidth-20)/2;
> image._y = (layoutHeight-16)/2;
> }
>
> this isn't working.
What do you mean it isn't working? What's happening?
Try using image.width and image.height instead of 20 and 16 in the
last two lines.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
---- LSpots keywords ?> ---- HM ADS ?>
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

