Skip to content

Fix resizing with north and west resize handles - #3360

Open
ryanpetebyte wants to merge 4 commits into
gridstack:masterfrom
ryanpetebyte:master
Open

Fix resizing with north and west resize handles#3360
ryanpetebyte wants to merge 4 commits into
gridstack:masterfrom
ryanpetebyte:master

Conversation

@ryanpetebyte

@ryanpetebyte ryanpetebyte commented Aug 18, 2026

Copy link
Copy Markdown

Description

I changed the _dragOrResize method to change the x and y positions to be calculated by the width and height change, specifically only for the north and west handles. For example the original method could cause the widgets to grow in width, but keep the same x depending on the resolution and the position of the cursor.

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test) (I don't know why, but there were several failures when I ran yarn lint, and none in what I changed. I've never done .ts development so my system might not be configured correctly.)
  • Extended the README / documentation, if necessary

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.

1 participant