Skip to content

itemClass Causes Malformed Item #2110

Closed

Description

@ep5000

When dropping a widget into a grid, setting itemClass causes the dropped widget to land at the top of the grid and the widget becomes malformed. For example, the following grid does this:

let myGrid = GridStack.init(
            {   acceptWidgets: ".my-widget-class",
                itemClass: "my-widget-class-with-gridlines"
            }, document.querySelector(`#myCanvasId`));

The class contents are simple:

.my-widget-class-with-gridlines
{
    border: 1px dotted #cccccc;

}

Removing the itemClass parameter from GridStack.init() resolves the issue, and adding it back causes the issue again.

Activity

  1. adumesny commented on Nov 23, 2022

    @adumesny
    Member

    can you post a running example (use bug template please).

  2. added a commit that references this issue on Jan 14, 2023
    9298e61
  3. adumesny commented on Jan 14, 2023

    @adumesny
    Member

    fix in next release - pease donate if oyu 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions