Skip to content

Scheduler — fix scrollTo method ignores single property alignInView#32886

Merged
aleksei-semikozov merged 3 commits intoDevExpress:26_1from
aleksei-semikozov:fix/scheduler-scroll-to-align-in-view-detection_26_1
Mar 12, 2026
Merged

Scheduler — fix scrollTo method ignores single property alignInView#32886
aleksei-semikozov merged 3 commits intoDevExpress:26_1from
aleksei-semikozov:fix/scheduler-scroll-to-align-in-view-detection_26_1

Conversation

@aleksei-semikozov
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes dxScheduler.scrollTo so that passing an options object with only alignInView is recognized correctly (instead of being treated as deprecated positional arguments), and adds Jest coverage for the behavior.

Changes:

  • Updated scrollTo deprecation warning text and adjusted options-object detection to look for alignInView.
  • Added/expanded Jest tests for scrollTo (deprecation warning path and alignInView affecting horizontal scroll position).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
packages/devextreme/js/__internal/scheduler/m_scheduler.ts Fixes options-object detection for scrollTo and updates the deprecation warning message.
packages/devextreme/js/__internal/scheduler/__tests__/scheduler.test.ts Adds Jest coverage for scrollTo warning behavior and verifies differing scroll offsets for alignInView: 'start' vs 'center'.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread packages/devextreme/js/__internal/scheduler/m_scheduler.ts Outdated
Comment thread packages/devextreme/js/__internal/scheduler/__tests__/scheduler.test.ts Outdated
@aleksei-semikozov aleksei-semikozov merged commit f67a376 into DevExpress:26_1 Mar 12, 2026
127 of 128 checks passed
@aleksei-semikozov aleksei-semikozov deleted the fix/scheduler-scroll-to-align-in-view-detection_26_1 branch March 20, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants