Thank you very much!
Using ExternalInterface.call("resizeDiv",myHeight);
solved my problem of scrolling!
Here is my js function:
<script language="JavaScript" type="text/javascript">
function resizeContent(height) {
document.getElementById("content").style.height =
parseInt(height)+"px";
}
</script>
--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> App height is bound by the stage size. It sounds like you actually want
> to change the player's object size in the browser which requires
> javascript and ExternalInterface
>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of guillaumeracine
> Sent: Wednesday, August 06, 2008 9:02 AM
> To: [email protected]
> Subject: [flexcoders] Application's height property problem
>
>
>
> Hi, i want to set the height of my application dynamically.
> My app has a tree menu to the left and product thumbnails on the right.
> I want to increase the height of the application depending on the
> number of rows displayed in my product thumbnails. (The goal is to be
> able to scroll with the browser instand of scrolling inside a VBox)
>
> I have a appHeight property in my ModelLocator class.
> This property is changed when the product's dataprovider change.
>
> Here is the structure of my application
>
> <mx:Application ... height="{modelLocator.appHeight }">
>
> <mx:HBox>
>
> <mx:Tree height="{this.height}">...</mx:Tree>
> <mx:VBox height="{this.height}">...</mx:VBox
>
> </mx:HBox
>
> </<mx:Application>
>
> This is the way i think it should work but it seems that i can't
> acheive what i want with this...the height does not change at all and
> i think there is a limit to the height of the application because if
> my heigh is 2000 or 4000 i don't see any difference...
>
> Please help!
>