From 662f98f10b96c1be5abdffe418863a4af497c233 Mon Sep 17 00:00:00 2001 From: Sergio Bur Date: Thu, 26 Feb 2026 12:57:33 +0100 Subject: [PATCH] fix: fix bug --- .../js/__internal/scheduler/m_subscribes.ts | 2 +- .../subscribes.tests.js | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/packages/devextreme/js/__internal/scheduler/m_subscribes.ts b/packages/devextreme/js/__internal/scheduler/m_subscribes.ts index 5499536f3102..15ac39411235 100644 --- a/packages/devextreme/js/__internal/scheduler/m_subscribes.ts +++ b/packages/devextreme/js/__internal/scheduler/m_subscribes.ts @@ -143,7 +143,7 @@ const subscribes = { const groups = this.getViewOption('groups'); if (groups?.length) { - if (allDay || !VERTICAL_VIEW_TYPES.includes(this.currentView.type)) { + if (allDay || this.currentView.type === 'month') { const horizontalGroupBounds = this._workSpace.getGroupBounds(options.coordinates); return { left: horizontalGroupBounds.left, diff --git a/packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/subscribes.tests.js b/packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/subscribes.tests.js index 91d25f5faa53..c265e1462f4a 100644 --- a/packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/subscribes.tests.js +++ b/packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/subscribes.tests.js @@ -912,6 +912,51 @@ module('Grouping By Date', { assert.roughEqual(result.right, lastCellPosition.left + 1.5 * cellWidth, 3, 'Area right is OK'); }); + test('\'getResizableAppointmentArea\' should return undefined for not allDay appointments in grouped timeline view', async function(assert) { + const priorityData = [ + { + text: 'Low Priority', + id: 1, + color: '#1e90ff' + }, { + text: 'High Priority', + id: 2, + color: '#ff9747' + } + ]; + await this.createInstance({ + currentView: 'timelineWeek', + views: [{ + type: 'timelineWeek', + name: 'timelineWeek', + groupOrientation: 'horizontal' + }], + width: 800, + currentDate: new Date(2018, 4, 21, 9, 0), + groupByDate: true, + groups: ['priorityId'], + resources: [ + { + fieldExpr: 'priorityId', + allowMultiple: false, + dataSource: priorityData, + label: 'Priority' + } + ], + }); + + const result = this.instance.fire('getResizableAppointmentArea', { + allDay: false, + coordinates: { + groupIndex: 1, + left: 550, + top: 0 + }, + }); + + assert.strictEqual(result, undefined, 'Area is undefined'); + }); + test('\'getResizableStep\' should return correct step, groupByDate = true, Month view', async function(assert) { const priorityData = [ {