I see now, they're including an older version of the Timeline code (circa 2007?)
The latest version linked on the MediaWiki website, v1.6.0, includes a very old
version of Timeline, which doesn't even include the overview painter.
I'm guessing you have instant events in a band with showEventText set to false.
To change the look of instant events, look inside painters.js for the "var
createInstantDiv = function(...)" definition.
In that function, there is a check to see if the instant event should display a
line for no text:
if (p._showLineForNoText) {
div.style.width = "1px";
div.style.borderLeft = "1px solid " + (background != null ?
background : eventTheme.instant.lineColor);
realign = 0; // no shift
length = 1;
}
You want to change the borderLeft 1px to whatever width you want.
I'd recommend that you copy and paste the entire
Timeline.DurationEventPainter.prototype.paint function into a new .js file, and
load that after Timeline has loaded. This way you can customize that copy and
override the default behavior. This will make it easier to keep track of your
changes, and update if they switch to a newer version of Timeline.
If you're using some other version of the SemanticResultsFormat or a different
version of Timeline, let me know which one.
--Mike
On Aug 4, 2011, at 3:53 PM, [email protected] wrote:
> Thank you,
> but in my version, there is no .timeline-small-event-icon
> I have three css files : ether, events and timeline
>
> I don't know exactly which version of Timeline it is, because it is
> given with the mediawiki extension SemanticResultsFormat, so maybe
> they tweaked your script and that makes it harder to customize...
>
> Anyway I tried to add .timeline-small-event-icon { width: 5px;} but in
> vain...
>
> On 3 août, 22:24, Michael Nosal <[email protected]> wrote:
>> Do you mean the little ticks shown in an overview painter band?
>> This is set in CSS:
>> .timeline-small-event-icon {height:6px; width:1px;}
>> Change width to the value you want (e.g. 2px)
>>
>> --Mike
--
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.