Greetings,

 

I am trying to resize the bubbles. 

 

 

 

I found an old thread (http://simile.mit.edu/mail/ReadMsg?listName=General
<http://simile.mit.edu/mail/ReadMsg?listName=General&msgId=12267>
&msgId=12267)

that recommended doing the following:

 

In the JavaScript of your webpage:
 
function onLoad()
{
        [...]
        theme.event.bubble.width = x;
        theme.event.bubble.height = y;
        [...]
}
 
where x and y are integers expressed in pixels.

 

 

So I modified the following function:

 

function onLoad() {

  var months=new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul",
"Aug", "Sep", "Oct", "Nov", "Dec");

 

        theme.event.bubble.width = 100;
        theme.event.bubble.height = 60;

 

 

  var d=new Date();

  var dtStamp=months[d.getMonth()]+" "+d.getDate()+" "+d.getFullYear()+"
00:00:00 GMT";

 

  var eventSource = new Timeline.DefaultEventSource();

  var bandInfos = [

    Timeline.createBandInfo({

        eventSource:    eventSource,

        date:           dtStamp,

        width:          "85%",

        intervalUnit:   Timeline.DateTime.MONTH,

        intervalPixels: 400

    }),

.

.

.

 

However this change rendered my timeline useless and it wont work anymore.

 

I tried reading the documentation and didn't have much luck finding
anything. Can someone please direct me to the right method.

 

Secondly, I modified the onload function to center on todays current date.
The example has it at some date in August or June, which didn't work out for
me. So I figured its best to do it to the current day that the user visits
the timeline.

 

This brings me to another problem. When the browser window is resized I lose
my view. What is going on with this?

 

Any ideas, hints and etc would be greatly appreciated.

 

 

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to