That works! I saw that it was hardcoded, this was exactly the kind of hack I was looking for. Thanks!
-Deanna -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Huynh Sent: Tuesday, January 15, 2008 9:07 AM To: General List Subject: Re: Changing font size of the SpanHighlightDecorator Deanna, The font size for SpanHighlightDecorator labels is hard-coded as "300%" in http://simile.mit.edu/timeline/api/scripts/decorators.js because I wasn't so smart about it. I don't want to change the code at this moment, so the only way around this problem is to add something like this after you include timeline-api.js: <script> var oldPaint = Timeline.SpanHighlightDecorator.prototype.paint; Timeline.SpanHighlightDecorator.prototype.paint = function() { oldPaint.call(this); this._layerDiv.childNodes[1].style.fontSize = "200%"; // or whatever you want this._layerDiv.childNodes[2].style.fontSize = "200%"; // or whatever you want }; </script> It's a bit of a hack. Let me know if that works for you. Cheers, David Schneider, Deanna wrote: > Hi all, > Has anyone come up with a clever way to change the font size of the > SpanHighlightDecorator start and end labels? They're really way bigger > than I need them to be, but see that they're hard coded in, with no ID > for easy manipulation. > > Thanks! > -Deanna > > > -- > Deanna Schneider > 130 Pyle Center 702 Langdon St. > 608 265-7923 > > _______________________________________________ > General mailing list > [email protected] > http://simile.mit.edu/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
