Skip to content

CRT-1033 Fix navigator.enabled & zoom.enabled toggling#6166

Merged
alantreadway merged 5 commits intolatestfrom
CRT-1033/fix_navigatorzoom_enabled_toggling
Mar 26, 2026
Merged

CRT-1033 Fix navigator.enabled & zoom.enabled toggling#6166
alantreadway merged 5 commits intolatestfrom
CRT-1033/fix_navigatorzoom_enabled_toggling

Conversation

@olegat
Copy link
Copy Markdown
Contributor

@olegat olegat commented Feb 9, 2026

https://ag-grid.atlassian.net/browse/CRT-1033

The navigator.ts module does not need to call ZoomManager.updateZoom when navigator.enabled is false, the chart.ts will automatically reset the zoom if it detects that both navigator.enabled and zoom.enabled are false.

Also, chart.ts was only resetting the X axis instead of the X and Y axis.

@alantreadway alantreadway changed the base branch from b13.1.0 to latest February 11, 2026 11:11
@olegat olegat force-pushed the CRT-1033/fix_navigatorzoom_enabled_toggling branch from 0e46fe3 to cb1dbc3 Compare February 11, 2026 13:44
@olegat olegat marked this pull request as ready for review February 11, 2026 13:44
@olegat olegat requested a review from alantreadway as a code owner February 11, 2026 13:44
@github-actions
Copy link
Copy Markdown
Contributor

✅ Codex review complete; no issues found

View full review

CRT-1033 Fix navigator.enabled & zoom.enabled toggling

PR: #6166
Author: olegat | Base: latest ← Head: CRT-1033/fix_navigatorzoom_enabled_toggling
Diff: 2 files changed, +1 -6

Summary

This PR fixes zoom reset behaviour when toggling navigator/zoom by centralising reset logic in Chart.applyOptions and removing navigator-specific reset side effects. It also resets both X and Y zoom ranges when all zoom-related modules are disabled.

Findings

P0: 0 | P1: 0 | P2: 0 | P3: 0

No issues found.

Verdict

Assessment: correct
Confidence: 0.93

The change cleanly removes conflicting reset paths and uses a single reset condition based on navigator/zoom/scrollbar enabled state, with no correctness regressions evident in the modified flow.

Required Actions: None - ready to merge

@github-actions
Copy link
Copy Markdown
Contributor

Snapshots automatically updated, please review before merge:

The navigator.ts module does not need to call ZoomManager.updateZoom when
navigator.enabled is `false`, the chart.ts will automatically reset the zoom if
it detects that both navigator.enabled and zoom.enabled are `false`.

Also, chart.ts was only resetting the X axis instead of the X and Y axis.
@olegat olegat force-pushed the CRT-1033/fix_navigatorzoom_enabled_toggling branch from cb1dbc3 to aa96d3b Compare March 25, 2026 17:18
@github-actions
Copy link
Copy Markdown
Contributor

Snapshots automatically updated, please review before merge:

@olegat olegat requested a review from a team as a code owner March 25, 2026 18:22
Copy link
Copy Markdown
Member

@alantreadway alantreadway left a comment

Choose a reason for hiding this comment

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

LGTM

@alantreadway alantreadway merged commit bc9fff3 into latest Mar 26, 2026
36 checks passed
@alantreadway alantreadway deleted the CRT-1033/fix_navigatorzoom_enabled_toggling branch March 26, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants