Niek,
It is actually this line
this._highlightDiv.style.height=(band.getViewWidth()-4)+"px";
which can throw an exception if the band is too narrow, resulting in a
negative height. Does the error occur if you make the bands taller?
David
Niek van Baalen wrote:
> Hello
>
> In Internet Explorer (version 7)
> http://www.ikcro.nl/php/test/timeline/usgseq_ikcro.html gives an error
> on line 3080 which is I think :
> this._highlightDiv.style.height=length+"px
>
> From /* ether-painters.js */
>
> this.position=function(startDate,endDate){
> this._createHighlightDiv();
>
> var startPixel=Math.round(band.dateToPixelOffset(startDate));
> var endPixel=Math.round(band.dateToPixelOffset(endDate));
> var length=Math.max(endPixel-startPixel,3);
> if(horizontal){
> this._highlightDiv.style.left=startPixel+"px";
> this._highlightDiv.style.width=length+"px";
> this._highlightDiv.style.top="2px";
> this._highlightDiv.style.height=(band.getViewWidth()-4)+"px";
> }else{
> this._highlightDiv.style.top=startPixel+"px";
> *this._highlightDiv.style.height=length+"px";*
> this._highlightDiv.style.left="2px";
> this._highlightDiv.style.width=(band.getViewWidth()-4)+"px";
> }
> }
> In Mozilla Firefox all works fine.
>
> Does anyone know a solution?
>
> Thanks
> Niek van Baalen
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general