Skip to content

Horizontal resize unexpectedly changes height when using very high column count and small cellHeight #3230

@razmikhovhannisyan

Description

@razmikhovhannisyan

Subject of the issue

We need very small drag and resize steps, so we increased the grid resolution by setting:

  • column: 1000
  • cellHeight: 1
  • margin: 3

Your environment

GridStack v12.4.2
Angular 21

After this change, resizing behaves unexpectedly.

Steps to reproduce

Angular demo:
https://stackblitz.com/edit/stackblitz-starters-ifdclhe3

  1. Open the StackBlitz demo.
  2. Resize the 3rd widget (right-left).
  3. Decrease its width from left to right in small steps.
  4. Repeat the resize several times.

Expected behavior

While resizing horizontally (west handle), the widget also increases in height from the bottom, even though only horizontal resizing is being performed.

The height (h) changes unexpectedly during horizontal resize.
This does not appear to be a collision issue — it happens during repeated small horizontal adjustments.

Notes

We are not sure if this is a bug or if we are using the grid in an unintended way.
Perhaps we are misconfiguring something when using very high column counts and very small cellHeight.

If this is expected behavior, we would appreciate guidance on the correct way to achieve minimal drag/resize step precision.

Thank you for the great library — we really appreciate the work behind GridStack.
And apologies if we are doing something wrong on our side.

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