[flexcoders] Application's height property problem

2008-08-06 Thread guillaumeracine
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!



RE: [flexcoders] Application's height property problem

2008-08-06 Thread Alex Harui
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of guillaumeracine
Sent: Wednesday, August 06, 2008 9:02 AM
To: flexcoders@yahoogroups.com
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!