Skip to content

knockout Deleting widget issue (related with browser's resizing) #1015

@ggenute

Description

@ggenute

Subject of the issue

Deleting widget issue (related with browser's reducing to display widgets in one column)

Your environment

  • version of gridstack.js 1.0.0-dev
  • Google Chrome Version 77.0.3865.90

Steps to reproduce

http://gridstackjs.com/demo/knockout.html http://gridstackjs.com/demo/knockout2.html

  1. Resize the browser from displaying few gridstack columns to one column. Don't refresh the page.
  2. Try to delete 3rd widget from the top, it deletes 1, 2, 3 widgets and doesn't removes 1st and 2nd widgets from the DOM.
  3. Without page refresh come back to the full screen browser, the display of widgets is broken.

Expected behaviour

Deleting should work when the browser is resized from displaying few gridstack columns to one column.

Actual behaviour

When the browser is resized / reduced from displaying few gridstack columns to one column, deleting widgets doesn't work. After coming back to the full screen browser, the display of widgets is broken.
Picture_1
Picture_2
Picture_3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions