Hi Paul, My guess is a change between 2.2 and 2.3. 2.3 is the current trunk version. I will work on getting it released, I think that will solve a lot of problems.
Sorry for the issues, Larry ps theme.event.tape.height definitely works on the trunk version, there is an example that tests it. ________________________________ From: PMW <[email protected]> To: SIMILE Widgets <[email protected]> Sent: Thursday, February 19, 2009 10:45:31 AM Subject: Re: Adjusting the theme Okay, so I've narrowed this down a little. Firstly, the steps on the Wiki aren't very good. Secondly, I found an example page here: http://simile-widgets.googlecode.com/svn/timeline/trunk/src/webapp/site/examples/test_example2/test_example2.html and thirdly, theme.event.tape.height breaks things. If I omit it, everything works fine. Why does changing theme.event.tape.height break things, and how can I change my tape height, since I really need to?! On Feb 19, 11:46 am, PMW <[email protected]> wrote: > I am trying to get to grips with Timeline for the first time, and > would like to change the size of the tape and tracks in my timeline > (because my titles spread over two lines, and I would like to see them > all). I have tried following the steps > here:http://code.google.com/p/simile-widgets/wiki/Timeline_CreatingNewThemes > But they don't seem to work. What am I doing wrong? Code below: > > <script src="http://simile.mit.edu/timeline/api/timeline-api.js" > type="text/javascript"></script> > <script> > var tl; > function onLoad() { > var eventSource = new Timeline.DefaultEventSource(); > > var theme = Timeline.ClassicTheme.create(); > theme.event.bubble.width = 350; > theme.event.bubble.height = 300; > theme.event.track.height = 15; > theme.event.tape.height = 8; > var bandInfos = [ > Timeline.createBandInfo({ > eventSource: eventSource, > date: "Dec 1 2008 00:00:00 GMT", > width: "70%", > intervalUnit: Timeline.DateTime.MONTH, > intervalPixels: 150, > theme: theme > }), > Timeline.createBandInfo({ > overview: true, > eventSource: eventSource, > date: "Dec 1 2008 00:00:00 GMT", > width: "30%", > intervalUnit: Timeline.DateTime.YEAR, > intervalPixels: 300, > theme: theme > }) > ]; > bandInfos[1].syncWith = 0; > bandInfos[1].highlight = true; > > tl = Timeline.create(document.getElementById("my-timeline"), > bandInfos); > Timeline.loadXML("example1.xml", function(xml, url) > { eventSource.loadXML(xml, url); }); > } > > var resizeTimerID = null; > function onResize() { > if (resizeTimerID == null) { > resizeTimerID = window.setTimeout(function() { > resizeTimerID = null; > tl.layout(); > }, 500); > } > }</script> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
