Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current time, grid and bars changes. #428

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Current time grid line
  • Loading branch information
Antonio Almeida committed Aug 29, 2024
commit c130bddfa0ba11f48b1206300a7c48cb2f0bc230
2 changes: 1 addition & 1 deletion dist/frappe-gantt.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/frappe-gantt.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/frappe-gantt.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/frappe-gantt.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -865,13 +865,13 @@ export default class Gantt {
date,
this.gantt_start,
"hour",
) + 24;
);

const scroll_pos =
(hours_before_first_task / this.options.step) *
this.options.column_width -
this.options.column_width;
parent_element.scrollTo({ left: scroll_pos, behavior: 'smooth' })
parent_element.scrollTo({ left: scroll_pos, behavior: 'smooth' });
}

scroll_today() {
Expand Down