Aaron Torres wrote:
> Forgive me if this has been answered before. I've found a few related
> posts and dug through the documentation/source, but was not able to
> apply these solutions them to my specific situation.
>
> I've created a simile timeline full of duration events. Some of these
> are years in length, some are weeks. I have two bands, one for months,
> and one for days so in some instances the event does not fit in the
> current window and I have to scroll to the left in order to see the
> title. Currently the title for events is put at the start of the event
> underneath it. I'd like to move these title to the end of the event
> instead (or 1 at the start and 1 at the finish if possible). I've
> gathered that modifying the css is likely the best approach to solving
> this, but I've had little-to-no luck finding which property to change
> or how to go about positioning these titles at the end of the event.
>
> Any help would be greatly appreciated.
>
Aaron,
CSS won't do this since each label is absolute-positioned to the left of
the event tape. You would need to fix the "painter" you use to position
it to the right. For example, if you're using the "original painter",
look in
http://api.simile-widgets.org/timeline/2.3.1/scripts/original-painter.js
Find
Timeline.OriginalEventPainter.prototype.paintPreciseDurationEvent
You need to override this function by making a copy of it after
including exhibit-api.js and then modifying it. You can see how
labelLeft and labelRight are calculated. Just modify them appropriately.
David
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---