Skip to content

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

Closed

Description

@icetomcat

Subject of the issue

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

Your environment

gridstack 4.2.7 HTML5
Chrome 93.0.4577.63
Firefox 91.0.2

Steps to reproduce

Resize the item
https://jsfiddle.net/icetomcat/bsyj3pn5/6/

Expected behavior

Item resized without changing position

Actual behavior

Item resized with changing position

Activity

  1. changed the title [-]Increases the y coordinate after item resize if the cell height is 12 pixels or less[/-] [+]The y coordinate Increases after item resize if the cell height is 12 pixels or less[/+] on Sep 16, 2021
  2. adumesny commented on Sep 16, 2021

    @adumesny
    Member

    note this doesn't happen if you have a margin of say 2. we reduce the height by margin (default 10) which happen to affect what row it lands on... yeah the math is off somewhere.
    https://jsfiddle.net/adumesny/1cgou9Lj/

  3. added 2 commits that reference this issue on Oct 18, 2021
    cb7b5ca
    8dd5ded
  4. adumesny commented on Oct 18, 2021

    @adumesny
    Member

    fixed in next release - don't forget to donate if you find this li useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions