drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

The end points of a line are not aligned exactly with the grid points, when the unit is set to "Millimeters"

Open mpreissler opened this issue 7 months ago • 0 comments

Preflight Checklist

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug The end points of a line are not aligned exactly with the grid points, when the unit is set to "Millimeters".

To Reproduce Steps to reproduce the behavior:

  1. Open a new blank diagram.
  2. Click on "View" menu, goto "Units" submenu and change the value to "Millimeters".
  3. Change the grid size to "0.5 mm". (see 1st screenshot)
  4. Create a new line
  5. Align one of the two line endpoints on the grid. Result: The line endpoint is usually positioned next to the grid and not on the grid. (See 2nd screenshot)

Expected behavior I expect the end point of the line to be aligned with the grid.

Screenshots drawIO_gridSize drawIO_notAligned_LineEnd

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 24.6.4

Desktop (please complete the following information):

  • OS: Windows 10 Version 22H2

Additional context Add any other context about the problem here.

mpreissler avatar Jul 14 '24 21:07 mpreissler