Chad,

There was a bug in Exhibit 2, and I have fixed it. You might have to 
hold down Shift while reloading your page to make sure your browser get 
the latest code.

However, there is a little more to do--a few changes to match the latest 
Timeline code:

    var timelineConfig = {
        timelineConstructor: function (div, eventSource) {  
            div.style.height="700px";
            div.style.fontSize = "8pt";
           
            var theme = Timeline.ClassicTheme.create();
            theme.event.track.height = 10;
            theme.event.track.gap = 1;
            theme.event.bubble.width = 400;
           
            var date = "Fri Nov 22 1963 13:00:00 GMT-0600"
            var bandInfos = [
                Timeline.createBandInfo({
                    width:          "90%",
                    intervalUnit: Timeline.DateTime.DECADE,
                    intervalPixels: 80,
                    eventSource:    eventSource,
                    date:           date,
                    theme:          theme
                }),
                Timeline.createBandInfo({
                    width:          "10%",
                    intervalUnit: Timeline.DateTime.CENTURY,
                    intervalPixels: 80,
                    eventSource:    eventSource,
                    date:           date,
                    overview:       true,
                    theme:          theme
                })
            ];
            bandInfos[1].syncWith = 0;
            bandInfos[1].highlight = true;
//            
bandInfos[1].eventPainter.setLayout(bandInfos[0].eventPainter.getLayout());


Everything else after that is the same. Note that // effectively remove 
that line of code.

The new layout in Timeline seems to handle several parallel durations 
worse than the old layout. I'll have to put back the old layout later.

David


Chad C wrote:
> I have migrated my data over to a new Exhibit 2.0 page, but when I try 
> to add back the old code I used to customize the Timeline the changes 
> do not display on the rendered page.
>
> http://www.musicedmagic.com/Exhibit/composersv21.html
>
> The code works fine in the old Exhibit, but is not working in the 
> new.  Any ideas?
>
> -- 
> Chad Criswell
> http://www.musicedmagic.com
> http://computeraccessories.suite101.com
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   

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

Reply via email to