Done.
After investigating the code, I realized this was no-way supported built-in,
so in turn I added:
- a getTheme() function to the Band class to return its _theme
- trackNum property to SpanDecorator
- in the SpanDecorator paint function, I calculate the top & height based on
the theme height & gap settings and the selected trackNum
- default to regular position if trackNum is not specified (or -1).
- apply the new position info to the start/end/div elements' style.

Challenge is now to be figure out how to make them fixed so that the band
can scroll underneath!

cheers.

On Tue, Jul 5, 2011 at 10:51 AM, krome <[email protected]> wrote:

> Hello fellow SIMILE developers,
>
> I want to display a text label for individual tracks in the timeline
> and would like the group's suggestions on how best to implement it.  I
> am loading the events with specific trackNum values to force layout,
> but I cannot find a simple way to overlay (or underlay) a text label
> in the same vertical row as the track events.
>
> The decorator mechanism is closest to my needs, but it generates a
> table that is always 100% height of the band.  It would be ideal if I
> could create a span decorator and assign a trackNum as a property,
> rather than default to the whole band.
>
> Alternatively, a label for the track as an overlay that "hovers" over
> the band so that it stays fixed as the band underneath scrolls would
> be very cool too.  Sort of like setting fixed cells in a spreadsheet.
>
> Any ideas or suggestions on how to edit the js to accomplish this?
>
> cheers
> .k

-- 
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.

Reply via email to