This is probably not the best performing solution, but wanted to share
it regardless.
Given that a band has an existing SpanHighlightDecorator, that is
simply a "watermark" text for the entire band that should always be
visible, we did the following:
....
band.addOnScrollListener(this.scrollListener);
....
// scroll listener for all source bands, not including the
overview band
scrollListener : function(band) {
var minVisibleDate = band.getMinVisibleDate();
// find watermarks
for (var j = 0; j < band._decorators.length; j++) {
var d = band._decorators[j];
// move watermarks, but not the "now" line
if (d instanceof Timeline.SpanHighlightDecorator) {
band._decorators[j]._startDate = minVisibleDate;
band._decorators[j]._endDate = minVisibleDate;
break;
}
}
band._paintDecorators();
}
I wonder if there is a better solution using a background image for
the band?
--
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.