• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 572
  • Last Modified:

Flex viewstack Height

Hello All,
I have a Viewstack with three pages.
for the first page, view stack height  is 600(its a constant height).
for the second page ,view stack height  is 650(its also constant height).
for the third page , view stack height is adjusted as the height of the third page is calculated(the height of the page is dyanmic and that height is assigned to viewstack).
the problem when i come back to the first the view stack height is not reflecting to 600.it is taking the height of the third page.
i am using the propery resizeToContent="true". for the view stack but it is not adjustiing.
How can i do ths. could some body help me.
Thanks .
0
srujanmiryala
Asked:
srujanmiryala
1 Solution
 
halfbloodprinceCommented:
Try this :
for the first page set maxHeight = 600
then when u come from the third page to first page
check the viewstack height with maxheight if is not equal then set the height to maxHeight...Something like this:
private function setCatalogHeight():void
                  {
                        if (vsMainViews.height != vsMainViews.maxHeight)
                        {
                              vsMainViews.height = vsMainViews.maxHeight;
                              this.verticalScrollPolicy = "auto";
                                                      }
                  }
Call the above function when your viewstack's selected index changes
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now