Hi Gabor,
Thanks for your time on Timeline. A couple of comments:
1) If you want to suggest a patch, you should be modifying the regular
source files, not the minimized files.
The regular files are used if you have setting bundled=false when
you load the Timeline sw.
2) If you have a duration event where the duration is so short that
there is no tape, then I suggest that you switch that event to be a
non-duration event. That way you will get an icon painted. If you want
the tapes to be 100% opacity for non-duration events, you can change
the setting in the theme.
(It is not clear to me how anyone would be able to click on a 1px wide
tape to get the popup.)
You could also consider switching all of your events to be non-
duration events. That way every event would get an icon, even the
extremely short ones.
Regards,
Larry
On Nov 6, 11:19 am, Gabor <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---