diff --git a/codebase/dhtmlxscheduler.d.ts b/codebase/dhtmlxscheduler.d.ts index 75bf81c..7aabcc1 100644 --- a/codebase/dhtmlxscheduler.d.ts +++ b/codebase/dhtmlxscheduler.d.ts @@ -867,6 +867,11 @@ export interface SchedulerConfigOptions { */ multi_day_height_limit: number|boolean; + /** + * always render the multi-day header + */ + multi_day_always_visible: boolean; + /** * enables the possibility to render the same events in several sections of the Timeline or Units view */ diff --git a/codebase/sources/dhtmlxscheduler.js b/codebase/sources/dhtmlxscheduler.js index 213a9b4..529b206 100644 --- a/codebase/sources/dhtmlxscheduler.js +++ b/codebase/sources/dhtmlxscheduler.js @@ -5435,6 +5435,7 @@ scheduler.config={ multi_day:true, multi_day_height_limit: 0, + multi_day_always_visible: false, drag_lightbox: true, preserve_scroll: true, @@ -5986,9 +5987,9 @@ scheduler._pre_render_events = function(evs, hold) { scale_settings.scroll_fix = true; } } else { - if (!evs.length && this._els["dhx_multi_day"][0].style.visibility == "visible") + if (!evs.length && this._els["dhx_multi_day"][0].style.visibility == "visible" && !this.config.multi_day_always_visible) h[0] = -1; - if (evs.length || h[0] == -1) { + if (evs.length || h[0] == -1 || this.config.multi_day_always_visible) { //shift days to have space for multiday events var childs = evl.parentNode.childNodes;