Skip to content

The ruler width can become out of sync with the canvas size#410

Open
mr83-uw wants to merge 1 commit intoaidenlab:masterfrom
mr83-uw:fix-ruler-math
Open

The ruler width can become out of sync with the canvas size#410
mr83-uw wants to merge 1 commit intoaidenlab:masterfrom
mr83-uw:fix-ruler-math

Conversation

@mr83-uw
Copy link
Copy Markdown

@mr83-uw mr83-uw commented Mar 19, 2026

Check before redrawing the ruler.

@mr83-uw
Copy link
Copy Markdown
Author

mr83-uw commented Mar 19, 2026

Screenshot from 2026-03-19 10-41-35

The juicebox.js client will draw the ruler correctly on the first pass, but when zooming in, it draws outside the bounds of the parent container.

This fix will check the offset width of the axis element, and sync it with the ruler canvas.

@turner turner self-assigned this Mar 22, 2026
@turner
Copy link
Copy Markdown
Collaborator

turner commented Mar 22, 2026

@mr83-uw can you provide a session file so that I can try to reproduce the bug? Thx.

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