Skip to content

fix(timeline): guard minimap density against fractional display width (#863) v1.20.1#864

Merged
lcottercertinia merged 2 commits into
certinia:release/1.20.1from
lukecotter:bug-853-density-scaling-1.20.1
Jul 23, 2026
Merged

fix(timeline): guard minimap density against fractional display width (#863) v1.20.1#864
lcottercertinia merged 2 commits into
certinia:release/1.20.1from
lukecotter:bug-853-density-scaling-1.20.1

Conversation

@lukecotter

Copy link
Copy Markdown
Collaborator

📝 PR Overview

Backport of the #863 fix to the 1.20.1 patch release line. The Timeline failed to load on Windows under fractional display scaling; this makes it robust.

🛠️ Changes made

  • Floor/normalise the minimap density bucket count at the single MinimapDensityQuery.query() entry point, so a fractional or NaN display width (from getBoundingClientRect() under non-integer DPI) can no longer throw RangeError: Invalid array length and abort timeline init.
  • Bump lana to 1.20.1 and add the ## [1.20.1] changelog entry.

🧩 Type of change (check all applicable)

  • 🐛 Bug fix - something not working as expected

🔗 Related Issues

related #863

✅ Tests added?

  • 👍 yes — fractional / NaN bucket-count regression tests in minimap-density.test.ts.

📚 Docs updated?

  • 🔖 CHANGELOG.md

…certinia#863)

Windows fractional display scaling (125/150/175%) makes getBoundingClientRect().width non-integer; passing it to MinimapDensityQuery as a bucket count threw "Invalid array length" and aborted timeline init before interaction handlers attached, so zoom/pan/keys all appeared dead. Floor the count at the single query() entry point. Bump 1.20.1.
@lcottercertinia lcottercertinia changed the title fix(timeline): guard minimap density against fractional display width (#863) fix(timeline): guard minimap density against fractional display width (#863) v1.20.1 Jul 23, 2026
@lukecotter lukecotter closed this Jul 23, 2026
@lukecotter lukecotter reopened this Jul 23, 2026
@lcottercertinia
lcottercertinia merged commit 14b6fc3 into certinia:release/1.20.1 Jul 23, 2026
5 checks passed
@lukecotter
lukecotter deleted the bug-853-density-scaling-1.20.1 branch July 23, 2026 08:44
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