Hi Everybody,

Ok, hopefully second time is now the charm for autoWidth.

It now seems to be working correctly for me on FF3, Google Chrome, IE
7, Safari 3/WIn.

Example for all y'all to try:
http://simile-widgets.googlecode.com/svn/timeline/trunk/src/webapp/examples/test_example2/test_example2.html

Notes:
The example shows 3 Timeline "widths" (actually the div's height for a
horizontal Timeline)

Step 1: While the Timeline is loading event data, the html file's div
height is used

Step 2: After all the events are loaded, the div is jumped to be the
automatically calculated height
The div size will be decreased at this time if appropriate.
(At this point, the Timeline's data has finished loading and is
available for use by the human)

Step 3: The standard event painters only look at a subset of the
events--they only look at the events
that will be visible on the screen or about to be. So the 3rd width is
calculated when the many
events at year 4400 need to be painted. When the Timeline gets there
(due to user interaction), the new width is calculated and the div's
height is increased using a 1 sec animation. Animation time is set in
the theme.

After step 2, the Timeline's width will only be increased, not
decreased.

Documentation is in the changes file:
http://simile-widgets.googlecode.com/svn/timeline/trunk/CHANGES.txt
but probably just as easy to view the source of the example2 file
(above). I'll make a wiki entry for it.

If someone could try it on a Mac, that'd be helpful.

Feedback is appreciated.

Regards,

Larry
New York
--~--~---------~--~----~------------~-------~--~----~
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