Skip to content

fix: offset new tables and areas to prevent overlapping placement#951

Open
VeerShah41 wants to merge 1 commit intodrawdb-io:mainfrom
VeerShah41:fix/new-element-overlap-offset
Open

fix: offset new tables and areas to prevent overlapping placement#951
VeerShah41 wants to merge 1 commit intodrawdb-io:mainfrom
VeerShah41:fix/new-element-overlap-offset

Conversation

@VeerShah41
Copy link
Contributor

When clicking 'Add table' or 'Add area' multiple times in a row, all new elements spawned at the exact same canvas coordinates (transform.pan.x, transform.pan.y), stacking invisibly on top of each other.

Apply a cascade offset of (count * 20)px on both x and y axes so each new element appears visibly below and to the right of the previous one.

Fixes #736

When clicking 'Add table' or 'Add area' multiple times in a row,
all new elements spawned at the exact same canvas coordinates
(transform.pan.x, transform.pan.y), stacking invisibly on top
of each other.

Apply a cascade offset of (count * 20)px on both x and y axes
so each new element appears visibly below and to the right of
the previous one.

Fixes drawdb-io#736
@vercel
Copy link

vercel bot commented Mar 19, 2026

@VeerShah41 is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Mar 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
drawdb Ready Ready Preview, Comment Mar 20, 2026 6:46am

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.

[BUG]New Elements (Tables, Notes, Areas) Overlap at Same Position

1 participant