Dear All,

In our project we have very different event lengths and we have
recognized that in some cases nor the detailed, nor the overview
painter paint very short tapes.
So, it would be great to include this fix:
Timeline.DetailedEventPainter.prototype._paintEventTape=function(L,B,D,A,G,C,I,H)
{var F=A-D;
var E=H.event.tape.height;
var K=I.trackOffset+B*I.trackIncrement+I.trackHeight/2;
var J=Math.round(K-E/2);
var M=this._timeline.getDocument().createElement("div");
M.style.position="absolute";
M.style.left=D+"px";
//MOD: M.style.width=F+"px"; make sure that at least 1px is painted
M.style.width=F<1?1+"px":F+"px";
...


Timeline.OriginalEventPainter.prototype._paintEventTape=function(N,B,D,A,G,C,J,I,M)
{var F=A-D;
var E=I.event.tape.height;
var K=J.trackOffset+B*J.trackIncrement;
var O=this._timeline.getDocument().createElement("div");
O.className=this._getElClassName("timeline-event-tape",N);
O.id=this._encodeEventElID("tape"+M,N);
O.style.left=D+"px";
//MOD: O.style.width=F+"px"; make sure that at least 1px is painted
O.style.width=F<1?1+"px":F+"px";
...


Regards,

Gabor
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to