Something must be going on in your code that is setting the
selectedChild or selectedIndex.  As Tracy suggests, post some code and
maybe someone can help.  Another approach is to create a new test
application and build up the components from scratch; to see where the
problem is occuring.   More than likely an event (probably change) is
causing some code to execute that is setting the index.

-TH

--- In [email protected], "donald_d_hook" <[EMAIL PROTECTED]>
wrote:
>
> When I hit the 2nd tab, it flickers and the 1st tab is displayed
> (still since I started on the first tab). I hit it again and he
> contents of the 2nd tab are displayed
>
> Thanks
>
>
> --- In [email protected], "Tim Hoff" TimHoff@ wrote:
> >
> >
> > So, when you click the 2nd tab, does the 2nd tab remain selected, or
> > does it switch back to the first tab? If it stays on the 2nd tab,
> are
> > you still seeing the content from the first tab, or is it just
> blank;
> > until you click the 2nd tab again?
> >
> > -TH
> >
> > --- In [email protected], "donald_d_hook" <donald_d_hook@>
> > wrote:
> > >
> > > TH -
> > >
> > > No, I m not doing that, thats what I thought it was originally.
> > >
> > > Thanks
> > >
> > > --- In [email protected], "Tim Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > Cool, one other thing to check would be if you are manually
> setting
> > > the
> > > > selectedIndex of the TabNavigator anywhere. Just guessing
> though;
> > > > without seeing the code.
> > > >
> > > > -TH
> > > >
> > > > --- In [email protected], "donald_d_hook"
> <donald_d_hook@>
> > > > wrote:
> > > > >
> > > > > TH -
> > > > >
> > > > > THanks - I will give it a shot and see.
> > > > >
> > > > >
> > > > > --- In [email protected], "Tim Hoff" TimHoff@ wrote:
> > > > > >
> > > > > >
> > > > > > Sounds suspiciously like a callLater() solution. Have you
> tested
> > > > > > whether the creationComplete event is actually firing,
> before
> > > you
> > > > > click
> > > > > > tab2, for all of the child components? Sometimes not setting
> the
> > > > > data,
> > > > > > in a timely fashion, can also make a view appear blank.
> > > > > >
> > > > > > -TH
> > > > > >
> > > > > > --- In [email protected], Manu Dhanda
> <manuraj.dhanda@>
> > > > > > wrote:
> > > > > > >
> > > > > > >
> > > > > > > Hi Tracy,
> > > > > > >
> > > > > > > It's really an issue with TabNavigator and we had faced
> it.
> > > > > > > I won't say that I need to click the tab twice, but I need
> to
> > > > > switch
> > > > > > back to
> > > > > > > Tab1 and then come back to Tab2 to see the content on my
> 2nd
> > > Tab.
> > > > > > >
> > > > > > > And yes, already tried with creationPolicy='all', but it
> din't
> > > > > worked.
> > > > > > >
> > > > > > > -Manu.
> > > > > > >
> > > > > > >
> > > > > > > Tracy Spratt wrote:
> > > > > > > >
> > > > > > > > Are you programatically doing anything with the content
> of
> > > tab
> > > > > 2?
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Do you understand about deferred instantiation and
> > > > > creationPolicy?
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Tracy
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > >
> > > > > > > > From: [email protected]
> > > > > [mailto:[EMAIL PROTECTED]
> > > > > > On
> > > > > > > > Behalf Of donald_d_hook
> > > > > > > > Sent: Thursday, September 25, 2008 2:15 PM
> > > > > > > > To: [email protected]
> > > > > > > > Subject: [flexcoders] TabNavigator - have to click twice
> on
> > > tab
> > > > > to
> > > > > > > > display page
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > I have a tab navigator with 3 tabs. Each tab has a
> canvas
> > > with
> > > > > > > > several components on it. when the page is displayed,
> you
> > > see
> > > > > the
> > > > > > 1st
> > > > > > > > tab. When I navigate to the 2nd tab, I have to click the
> 2nd
> > > tab
> > > > > > > > twice in order to view the contents of the tab. It looks
> > > like
> > > > > the
> > > > > > > > first click on the 2nd tab goes back to the first tab,
> then
> > > the
> > > > > 2nd
> > > > > > > > click displays the contents of the 2nd tab.
> > > > > > > >
> > > > > > > > Was wondering if anyone has experienced this behavior
> and
> > > > > wondering
> > > > > > > > what I am doing wrong.
> > > > > > > >
> > > > > > > > Thanks in advance.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > View this message in context:
> > > > > > http://www.nabble.com/TabNavigator---have-to-click-twice-on-
> tab-
> > > to-
> > > > > displ\
> > > > > > ay-page-tp19675428p19681501.html
> > > > > > > Sent from the FlexCoders mailing list archive at
> Nabble.com.
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>



Reply via email to