drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Page Grid is drawn with an unnerving offset

Open KampfCaspar opened this issue 1 year 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.

Describe the bug On a page with unit mm and a grid size of 10, I expect the grid lines to cross exactly at 20mm/20mm from the top left (as origin). If however, I place a rectangle at 20mm/20mm with the dimensions 20mm/20mm, the upper left corner is placed slightly above/left of the grid at 20mm/20mm. The bottom right corner lies slightly above/left of the grid at 40mm/40mm.

For me as a user, this looks like either the rectangle is drawn slightly 'off' or the grid does not actually start at the origin.

To Reproduce Steps to reproduce the behavior:

  1. Start a new Drawing
  2. Switch to mm units
  3. Set the grid size to 10
  4. Place a rectangle on the page
  5. set the rectangle's size to 20mm width, 20mm height
  6. set the rectangle's position to 20mm left, 20mm top
  7. Compare rectangle to page grid

Expected behavior Expected result would be to find the top left corner of the rectangle exactly at the grid cross 20mm/20mm and the bottom right corner exactly at the grid cross 40mm/40mm.

Screenshots image

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

  • draw.io version 24.0.7

Desktop (please complete the following information):

  • OS: Windows
  • Browser Edge
  • Browser Version 122.0.2365.92

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:

  • yes

Additional context none

KampfCaspar avatar Apr 04 '24 08:04 KampfCaspar