Hi there,

I updated the latest version of timeline (SVN 9475) this morning and found
an error:  "F.IndexOf(%) is not a function".

This turned out to be a bundled issue with timeline.js

This code:
Timeline._Impl.prototype._distributeWidths = function() {
:
        var x = widthString.indexOf("%");
        if (x > 0) {
            var percent = parseInt(widthString.substr(0, x));
            var bandWidth = percent * width / 100;
        } else {
            var bandWidth = parseInt(widthString);
        }
:
};

Had changed from this code: (differences bolded)
Timeline._Impl.prototype._distributeWidths = function() {
:
*    if (typeof widthString == 'string') {
*            var x = widthString.indexOf("%");
            if (x > 0) {
                var percent = parseInt(widthString.substr(0, x));
                var bandWidth = percent * width / 100;
            } else {
                var bandWidth = parseInt(widthString);
            }
*        } else {
            // was given an integer
            bandWidth = widthString;
        }
*:
};

Further to "fixing" this so I could get a timeline to show I seem to have
lost theme based autowidth, scrolling, zooming and my custom tape-painter is
no longer working.

Can someone confirm that autowidth, scrolling and zooming still work after
the latest changes?  I can look at my custom tape-painter.

Thanks,
Scott

--~--~---------~--~----~------------~-------~--~----~
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