PonteIneptique / simile-widgets

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

TIMELINE. error when more than 4 bands #140

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
in Timeline.GregorianEtherPainter.prototype.initialize, background styles
rely on theme, which defines only 4 colors:

this._backgroundLayer.style.background =
this._theme.ether.backgroundColors[band.getIndex()];

if more than 4 bands, this._theme.ether.backgroundColors[band.getIndex()]
is undefined

(my workaround:
    this._backgroundLayer.style.background =
this._theme.ether.backgroundColors[band.getIndex()%4];)

[Submitted byteto 58 on simile.mit.edu] 

Original issue reported on code.google.com by GabrielR...@googlemail.com on 5 Apr 2009 at 1:53