[#342,bugfix,timeline][s]: remove explicitly setting of width in JS as not the right way - fixes #342.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user