Skip to content

GridStack autoposition bug with version > 7 #2232

@stephenjason89

Description

@stephenjason89

Subject of the issue

Your environment

  • version of gridstack.js -7.2.3
  • which browser/OS microsoft edge macos

Steps to reproduce

Create this a grid-stack with grid-stack-item

like this
image

notice the last div with id='Products' it has no gs-x or gs-y props

then call

GridStack.init(
{	cellHeight: 240,
	styleInHead: true,
	margin: '2.5px'
})

You will notice that instead of placing the div with id='Products' beside div with id='Inventory Stock Value',
It places it on the next row. Like so
image

I downgraded to vs 6.0.3 for the meantime which fixes this issue

Expected behavior

image

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