|
|
@@ -167,8 +167,7 @@ var Gantt = Class.extend({ |
|
|
|
}, |
|
|
|
set_scroll_position: function() { |
|
|
|
document.querySelector(this.opts.parent_selector).parentElement.scrollLeft = |
|
|
|
this.get_min_date().diff(this.start, 'hours') |
|
|
|
/ this.opts.step * this.opts.column_width; |
|
|
|
this.get_min_date().diff(this.start, 'hours') / this.opts.step * this.opts.column_width; |
|
|
|
}, |
|
|
|
get_min_date: function() { |
|
|
|
return this.tasks.reduce(function(acc, curr) { |
|
|
|