Active
Project:
Timeline
Version:
6.x-2.1
Component:
Configuration
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
29 Dec 2009 at 01:27 UTC
Updated:
29 Dec 2009 at 22:30 UTC
Hi,
the title says it all: Setting autowidth to true breaks the timeline.. I tried it in the themes.js and in light and darkthemes theme.js -> When i set autowidth from false to true, timeline no longer works.
Anyone can help ?
Comments
Comment #1
john_the_second commentedActually, it is not totally broken. I can get it to work with firefox, and i know autowidth etc. works with IE8 -> the problem seems to be band.getViewWidth() in ether-painters.js , if that helps.
[Always assuming that the only thing we change is this.autoWidth = true; in themes.js in libraries..
Warm Regards, John
Comment #2
john_the_second commentedHere is the workaround: In modules/timeline/js/timeline.js change " width: width + '%'," and "width: '25%'," to fix numbers equaling your timeline settings. Works for me :)
Maybe there is a problem with the math used to calculate "width" ? I don´t know if the code in that file is "default" stuff or custom.
Still interested in a real solution tough..
Warm Regards, John
Comment #3
xamanu commentedThanks John!
Next time I work on the module I will have a look on that. I hope for now it is working for you with the workaround.
Comment #4
john_the_second commentedYes, it works. I´ll have a closer look at it myself when i have some time, but don´t expect too much - my javascript skills are somehow limited ;)
(I´ll post my site in 2 weeks when it is finished.)