Skip to content

Commit

Permalink
Initialize second time axis with all options (visjs#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpfoster authored Jun 19, 2023
1 parent 94683cf commit 805b1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timeline/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ class Core {

if (this.options.orientation.axis === 'both') {
if (!this.timeAxis2) {
const timeAxis2 = this.timeAxis2 = new TimeAxis(this.body);
const timeAxis2 = this.timeAxis2 = new TimeAxis(this.body, this.options);
timeAxis2.setOptions = options => {
const _options = options ? util.extend({}, options) : {};
_options.orientation = 'top'; // override the orientation option, always top
Expand Down

0 comments on commit 805b1f1

Please sign in to comment.