Hi, Have you tried looking at the measuredWidth and measuredHeight properties of both?
Mike On Tue, Oct 28, 2008 at 11:12 AM, Libby <[EMAIL PROTECTED]> wrote: > actually the canvas is wrapped because the screen is too small (not > mazimized). I need to know how much real estate the wrapped canvas is > occupying. So far I can'r find any evidence internally that it is > wrapped. I need to know the actual x,y of the lowest corner of it I > guess. But how....? > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Michael > Schmalle" > <[EMAIL PROTECTED]> wrote: > > > > Hi, > > The properties with $ signs mean they are wrapped and mx_internal. > The > > $height and $width are the actual Flash Player version of height > and width. > > > > At what point are you trying to get the height and width? Do you > know for > > sure the canvas has children and has been measured and updated? > > > > If you can see the canvas (with children), there is no way the > width and > > height will be zero. The borderColor property help with debugging to > > actually see the canvas if it has no borderStyle, set to solid. > > > > Mike > > > > On Tue, Oct 28, 2008 at 7:36 AM, Libby <[EMAIL PROTECTED]> wrote: > > > > > Flex 3 > > > At run time I am trying to find out if user has expanded a canvas > or > > > not. When I query the component or its parents, I always get the > > > original size, x & y = 0, etc. In the debugger I can see $height > and > > > other $variables which appear to contain the correct values, but > > > apparently this are a private property. What am I missing here? > > > > > > Thanks, > > > Libby > > > > > > > > > > > > > > > > > -- > > Teoti Graphix, LLC > > http://www.teotigraphix.com > > > > Teoti Graphix Blog > > http://www.blog.teotigraphix.com > > > > You can find more by solving the problem then by 'asking the > question'. > > > > > -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.