Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Grid is drawn with an unnerving offset #4310

Open
2 tasks done
KampfCaspar opened this issue Apr 4, 2024 · 0 comments
Open
2 tasks done

Page Grid is drawn with an unnerving offset #4310

KampfCaspar opened this issue Apr 4, 2024 · 0 comments

Comments

@KampfCaspar
Copy link

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
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

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

No branches or pull requests

1 participant