Have you tried calling validateNow() on the container that goes into
the info window before trying to read its height? The validateNow()
method validates and updates the properties and layout of the
container and then redraws it if necessary. This process must be done
before trying to read its height or you'll just get 0 since it hasn't
been laid out yet.

On Dec 21, 4:16 pm, KC <[email protected]> wrote:
> Hi -
>
> I've created a class to populate an infoWindow's customContent.
> Basically:
>
> var infoBoxContent:Sprite = new Sprite();
> // Call the InfoWindowLocationContent Class
> infoBoxContent = new InfoWindowLocationContent(content);
>
> And the class creates a couple HBox, formats the content, pulls in an
> image, then after the final addChild in the InfoWindowLocationContent
> I set the infoWindow.customContent = infoBoxContent;
>
> All of this works great.  The issue is then setting the
> infoWindow.height based on the actual height of the infoBoxContent.
> Everything I try keeps coming back 0.  If I debug, I can see the
> height getter variable is set correctly, but not the height itself.
>
> Any thoughts on how to get this?  I'd hate to have to extend
> OverlayBase just for this.  Anyway to access the getter variable
> easily?
>
> Thanks for any and all suggestions!
>
> KC

--

You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en.


Reply via email to