[#342,bugfix,timeline][s]: remove explicitly setting of width in JS as not the right way - fixes #342.

This commit is contained in:
Rufus Pollock
2013-04-16 18:23:59 +01:00
parent fc64fdab8f
commit 1fc5610874
4 changed files with 8 additions and 7 deletions

View File

@@ -67,11 +67,6 @@ my.Timeline = Backbone.View.extend({
_initTimeline: function() {
var $timeline = this.el.find(this.elementId);
// set width explicitly o/w timeline goes wider that screen for some reason
var width = Math.max(this.el.width(), this.el.find('.recline-timeline').width());
if (width) {
$timeline.width(width);
}
var data = this._timelineJSON();
this.timeline.init(data, this.elementId, this.state.get("timelineJSOptions"));
this._timelineIsInitialized = true