Skip to content

Grid where elements have a fixed set of widths and heights #2825

@UweStolz

Description

@UweStolz

Subject of the issue

Hello, I want to make a grid where the elements have a fixed set of sizes of 100 per unit.
(cellHeight is set to 100)

Is this possible at all and if so how can I achieve that?

Your environment

  • version of gridstack.js - v10.3.1
  • which browser/OS - Edge/Chrome / Windows

Steps to reproduce

There are a issues with my provided CSS override:

  • If I drag an element and the further it is dragged to the right the further the placeholder differs from the actual hold element (see attachment)
  • If one holds the LMB to resize the element and just moves the mouse a little the element suddenly increases its width beyond the cursor

https://jsfiddle.net/rt3zuvw1/3/

Bildschirmaufnahme.2024-10-17.165433.mp4

Expected behavior

The element(s) should properly resize like normal

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