Skip to content

fix resize when padding is large vs cellHeight#1877

Merged
adumesny merged 1 commit into
gridstack:masterfrom
adumesny:master
Oct 18, 2021
Merged

fix resize when padding is large vs cellHeight#1877
adumesny merged 1 commit into
gridstack:masterfrom
adumesny:master

Conversation

@adumesny

Copy link
Copy Markdown
Member

Description

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

* fix gridstack#1855
* reduce padding when calculating mid point if more than 10% of the cell height/width so it doesn't throw off calculations
@adumesny adumesny merged commit ebf982b into gridstack:master Oct 18, 2021
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.

The y coordinate Increases after item resize if the cell height is 12 pixels or less

1 participant