Perhapes a stupid question: Initial Autosizing ?

4 views
Skip to first unread message

laer...@googlemail.com

unread,
Jun 4, 2009, 5:25:03 AM6/4/09
to SIMILE Widgets
Hell-O

I am having quite a Buch of Data-sources .. with Events between 5 and
100 Bands. Is there any way of an vertical Autosizing ..or a way of
calculating the height for the Timeline ? There is no use giving the
Timeline a height of 500px for just 2 Bands .. and it's to small for
e.g. 100 Bands ..

Any special Tag or CSS-Magic ??


Greetings Volker Graf

Jonas Wagner

unread,
Jun 4, 2009, 5:37:34 AM6/4/09
to simile-...@googlegroups.com
Hello,

you can set your theme's autoWidth option to true. It will look similar
to the following:

var theme = Timeline.ClassicTheme.create();
theme.autoWidth = true;

// ... [skip] ...

Timeline.createBandInfo({
date: new Date(),
eventSource: eventSource,
intervalPixels: 60,
intervalUnit: Timeline.DateTime.DAY,
layout: "original",
theme: theme,
timeZone: 2,
width: 160 // minimum, will be adjusted by autoWidth
}),

Have a look at another example here:
http://simile-widgets.googlecode.com/svn/timeline/tags/latest/src/webapp/examples/test_example2/test_example2.html

Hope this helps,
Jonas

Reply all
Reply to author
Forward
0 new messages