Does anyone know if there is a way to tell the viewstack to recalculate its
height? (Should not it do that automatically?)

On Tue, Dec 9, 2008 at 3:31 PM, Luciano Manerich Junior <
[EMAIL PROTECTED]> wrote:

>   Got that same issue few days ago..
>
> Ive just swap the Panels, putting the higher first... Not that good
> solution, but, it has no problems for me.
>
> What you could try is, add canvas as child of the viewStack and panels as
> child of the canvas, resulting in a vertical scroll inside the canvas, not
> on the view stack.
>
> Set canvas to use full width and height...
>
> Not a solution, just a work around.
>
> -----Mensagem original-----
> De: [email protected] <flexcoders%40yahoogroups.com> [mailto:
> [email protected] <flexcoders%40yahoogroups.com>] Em nome de
> fotis.chatzinikos
> Enviada em: terça-feira, 9 de dezembro de 2008 11:10
> Para: [email protected] <flexcoders%40yahoogroups.com>
> Assunto: [flexcoders] vertical scrollbar problems...Please help i am
> freaking out :-)
>
>
> Hello all, I do not know how many hours i have spend playing around with
> scroll policies, heights, tops and bottoms...but still no solution.
>
> The application layout is the following:
>
> HBOX
> ----LEFT VBOX
> ----RIGHT VBOX
> ------PANEL
> ------VIEW STACK
> --------PANEL 1 (lets say 200 pixels height) --------PANEL 2 (lets say 500
> pixels height)
>
> Initialy, The viewstack show Panel 1, and when i play with smaller screen
> sizes, ie make firefox smaller than my monitor's full height a vertical
> scroll bar appears correctly (when panel 1 bottom reaches the bottom of the
> browser window)...
>
> The problem appears when i switch to the second panel in the viewstack
> (selectedIndex==1). The scrollbar appears and disappears, but it seems that
> the measuredHeight is wrong! The scrollbar only appears when the screen
> becomes less than the height of the first panel which is 300 pixels less
> height than the second panel making the application not usable as 300 pixels
> of panel 2 are hidden...
>
> Does it pop any ideas? The viewstack's resizeToContent is true...
>
> Thanks,
> Fotis
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],

Reply via email to