ソースを参照

Merge pull request #2103 from paurosello/gantt-build

Fix build error - Gantt
version-14
Nabin Hait 8年前
committed by GitHub
コミット
11cafb5b93
1個のファイルの変更1行の追加2行の削除
  1. +1
    -2
      frappe/public/js/frappe/views/gantt.js

+ 1
- 2
frappe/public/js/frappe/views/gantt.js ファイルの表示

@@ -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) {


読み込み中…
キャンセル
保存