If it were me, I would try to fix the track problem before worrying about the automatic resizing problem. I wonder if timeline is using the width of the band to determine how many tracks it can fit. Check the function paintPreciseDurationEvent() to see how it is determining the track for the event. It should not be ignoring your track number, unless somehow there is a typo in your JSON data (is that possible?).
--Trudy On Wed, Jun 15, 2011 at 7:52 PM, Nick <nicholas.m.do...@gmail.com> wrote: > Hey, I'm relatively new to the SIMILE Timeline and I'm trying > (unsuccessfully) to do two things with my timeline. I already have an > up-and-running timeline that's linked to a SQL database and I'm > querying the database and building JSON data from it on the fly, but > I'm having trouble forcing the events to be on different tracks, so no > two events are horizontally next to each other (I tried using trackNum > but it didn't seem to have any effect.) I'm also trying to make the > timeline automatically resize itself depending on how many events are > on it, so it should expand if there are more than 15 or so and shrink > if there are only four or five. Any suggestions or pointers would be > much appreciated. > > Thanks, > Nick > > -- > You received this message because you are subscribed to the Google Groups > "SIMILE Widgets" group. > To post to this group, send email to simile-widgets@googlegroups.com. > To unsubscribe from this group, send email to > simile-widgets+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/simile-widgets?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to simile-widgets@googlegroups.com. To unsubscribe from this group, send email to simile-widgets+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en.