diff --git a/packages/devextreme/js/__internal/scheduler/appointments/m_cell_position_calculator.ts b/packages/devextreme/js/__internal/scheduler/appointments/m_cell_position_calculator.ts index 6ce4151b1043..7ff1e069b5ed 100644 --- a/packages/devextreme/js/__internal/scheduler/appointments/m_cell_position_calculator.ts +++ b/packages/devextreme/js/__internal/scheduler/appointments/m_cell_position_calculator.ts @@ -134,6 +134,7 @@ class BaseStrategy { columnIndex: position.columnIndex, hMax: horizontalHMax, vMax: verticalMax, + vMin: position.top, groupIndex: validGroupIndex, }; } diff --git a/packages/devextreme/js/__internal/scheduler/appointments/rendering_strategies/m_strategy_vertical.ts b/packages/devextreme/js/__internal/scheduler/appointments/rendering_strategies/m_strategy_vertical.ts index 4c04ebcecb43..0cd8c1fb3d32 100644 --- a/packages/devextreme/js/__internal/scheduler/appointments/rendering_strategies/m_strategy_vertical.ts +++ b/packages/devextreme/js/__internal/scheduler/appointments/rendering_strategies/m_strategy_vertical.ts @@ -203,10 +203,13 @@ class VerticalRenderingStrategy extends BaseAppointmentsStrategy { const minHeight = this.getAppointmentMinSize(); const { - vMax, hMax, + vMax, + vMin, } = appointmentSettings; + const maxHeight = vMax - vMin; + const hasTailPart = this.options.endViewDate > appointmentSettings.info.appointment.endDate; let left = Math.round(appointmentSettings.left + offset); let tailHeight = this._getTailHeight(appointmentGeometry, appointmentSettings); @@ -215,7 +218,7 @@ class VerticalRenderingStrategy extends BaseAppointmentsStrategy { while (tailHeight > 0 && left < hMax) { tailHeight = Math.max(minHeight, tailHeight); columnIndex += cellsDiff; - const height = Math.min(tailHeight, vMax); + const height = Math.min(tailHeight, maxHeight); result.push({ ...appointmentSettings, @@ -229,7 +232,7 @@ class VerticalRenderingStrategy extends BaseAppointmentsStrategy { }); left += offset; - tailHeight -= vMax; + tailHeight -= maxHeight; } if (hasTailPart && result.length > 0) {