8000 Gridstack movement and resizing is constrained to the y-axis · Issue #868 · gridstack/gridstack.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Gridstack movement and resizing is constrained to the y-axis #868
Cl 7299 osed
@StefanM98

Description

@StefanM98

Firstly, I would like to thank the developer(s) of gridstack for providing such an awesome and useful plugin! Great work!

I will greatly appreciate any help!

Thanks,
Stefan

Subject of the issue

When moving or resizing an item, the placeholder acts as expected, while the gridstack item seems to be constrained to only the y axis. This is most likely an issue with my code and not gridstack.

My environment

  • gridstack.js - 0.3.0
  • jQuery - 3.3.1
  • jQuery-UI - 1.12.1
  • Underscore.js - 1.9.0
  • Any Browser

Steps to reproduce

I have made a CodePen demonstrating my problem.

In this particular example I have a grid with a width of 35. To accomplish this, I used the SASS snippet included in the README of this project. I simply changed $gridstack-columns: 12; to $gridstack-columns: 35; and then used Sassmeister to convert the SASS to CSS and used that in my example code.

Expected behavior

The ideal behavior would be to either move with the placeholder, or not move at all until mouse up.

Actual behavior

When dragging the item (either moving or resizing) the placeholder acts as expected. However, the gridstack item itself will ONLY move with the pointer up and down, as if it is constrained to the y-axis.

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

      0