Skip to content

Dragging/Resizing an item when zooming out in browser results in jumping item #3189

@SimonPreini

Description

@SimonPreini

Subject of the issue

When i zoom out to 80% in the browser and then grab the item (on the resize you can see it the best) it jumps a little bit (see the gif). It gets more the further down the item is. I think there is something wrong with the calculation of the position of the placed element. When changing the zoom level to normal it works perfectly good as expected.

Image

Your environment

Version of gridstack.js: 12.3.3
Browser: Chrome (142.0.7444.163)

Steps to reproduce

go to the examples page here
Or here i just moved the example page to stackblitz

Expected behavior

Resize should not jump like it is when having no zoom in the browser

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions