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

john_the_second’s picture

Actually, 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

john_the_second’s picture

Here 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

xamanu’s picture

Assigned: Unassigned » xamanu
Priority: Normal » Minor

Thanks 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.

john_the_second’s picture

Yes, 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.)