Skip to content

Grid elements can be resized outside of the bound defined by row option. #2055

Closed

Description

@Voodu

Subject of the issue

row setting is not respected and elements can be resized outside of grid bounds defined by row setting.

The bug was introduced in version 6.0.2. The previous one, 6.0.1, seems to be working just fine.

Your environment

  • gridstack@6.0.2
  • tested on Chrome and Firefox, Ubuntu 20.04

Steps to reproduce

https://jsfiddle.net/pkyjg2sw/
This can be reproduced in two ways:

  1. Resize the upper element downward, pushing the bottom one down.
  2. Resize the bottom element downward. Might need some wigging with the mouse at the bottom of the screen, but it's also possible.

Expected behavior

Resizing the upper element vertically shouldn't be possible due to fixed rows option

Actual behavior

Resizing is possible, the bottom element is pushed downwards and everything gets out of defined rows bounds.

Activity

  1. adumesny commented on Sep 29, 2022

    @adumesny
    Member

    | bug was introduced in version 6.0.2. The previous one, 6.0.1

    thank you, that makes it easier to track. You fix some bugs, and apparently introduce new ones :)

    Note: apparently maxRow=1 doesn't force horizontal movement either (same issue #2056).

  2. added 2 commits that reference this issue on Oct 8, 2022
    3c447eb
    13b82d5
  3. adumesny commented on Oct 8, 2022

    @adumesny
    Member

    fixed in 6.0.3 - don't forget to donate if you find this lib 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