PonteIneptique / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

TIMELINE. Bugs using bandInfos property:- align : "Top" to put date/time interval markers at top of div. #177

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If 'align' property set to "Top" in order to place date/time markers at the
top of the div then then track of 1st event overlaps the interval markers.
I am using a hack to work around this:

tl.getBand(0).getEventPainter()._params.theme.event.track.offset += 1;

I guess this should be within the scripts somewhere but my javascripting is
not up to it!

Also when align : "Top" is used then info bubbles/balloons are wrongly
placed and disjointed when bundle.js is used but OK if bundle=false so I
guess the fix in TIMELINE-48 resolves it but is still not in bundle.

Windows

[Submitted by Ron Prior on simile.mit.edu]

Ron Prior - 28/Mar/07 12:59 PM
It was late and I forgot 'theme' is explicitly declared, so forget

tl.getBand(0).getEventPainter()._params.theme.event.track.offset += 1;

and use

var theme = Timeline.ClassicTheme.create();
        theme.event.track.offset = 1.5;

instead. duh!

Original issue reported on code.google.com by GabrielR...@googlemail.com on 7 Apr 2009 at 7:34