Ok I found my solution.
In case someone would be interested in it here it is.
1. On the tab that contains the timeline, add a listener for tab
contentVisibleChange event:
<pre>myTab.addListener("contentVisibleChange",
this._onTimelineTabShow, this, true);</pre>
2. Create your timeline in the _onTimelineTabShow event handler:
<pre>
_beforeTimelineTabShow:function(evt){
// Check if the value is true->content made visible
if(evt.newValue===true){
// Check if the timeline has already been created or if it is the
first time the tab is shown
if(!myTimeline){
// create you timeline here
}
}
return true;
}
</pre>
Doing that, at the time the code for timeline creation is executed,
the tab content element is already visible and the timeline
initializes correctly.
Hope this will help :)
<
On May 2, 12:00 am, lou_tribal <[email protected]> wrote:
> Hello,
> Does someone found a way to display a timeline inside a yahoo yui tab?
> I try to create a yahoo yui tabview in which one of the tab is
> displaying the timeline.
> So for example, you have 3 tabs, when clicking on the third tab the
> timeline is displayed.
> The problem I am facing is that the main timeline element is displayed
> but I am not able to display the bands.
> For what I found so far, each bands have style dimension/position set
> to 0.
> I guess it is related to the fact that the tab element that contains
> the timeline is initially hidden.
> If anybody could give me some hint on that it would be greatly
> appreciated.
> Thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---