Draw.io defaults to 2.5 mm in Gird, but the value is actually not the grid value.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 8.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Preflight Checklist
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Describe the bug
When I set the Unit to mm the GUI shows a grid value of 2.5 mm.
But, if I draw a rect, using the size of the react is e.g. 10.2 mm x 10.2 mm when the edges align to the grid (snapping to grid).
If I go into the value editor and re-type 2.5 mm into the editor the grid is changed.
From this on the snapped rects have the multiple of 2.5 mm in size, e.g. 10.0 mm x 10.0 mm
To Reproduce
Steps to reproduce the behavior:
- Start a new diagram
- Switch unit to mm
- Switch the grid to visible / active
- Check that 2.5 mm is shown for the grid size (do not re-edit the value!!)
- Try to draw a rect with size 10.0 mm x 10.0 mm (using snapping on the grid)
- The tooltip in the corner of the rect shows the size 10.2 mm x 10.2 mm
Expected behavior
10.0 mm x 10.0 mm should be possible
Screenshots
draw.io version (In the Help->About menu of the draw.io editor):
- draw.io version 29.4.0 (Web Version)
Additional context
Add any other context about the problem here.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in the web editor using the listed steps, with millimetres, a visible active grid, and snapping enabled. Trace how the displayed 2.5 mm grid value is applied, then verify that snapped rectangles can use exact 2.5 mm multiples such as 10.0 mm × 10.0 mm without re-editing the value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100