Thanks to visit codestin.com
Credit goes to github.com

Skip to content

When doing an add_widget it takes very long and the gridster.rows becomes a string? #425

Open
@rept

Description

@rept

I have a grid (layout) with 3 widgets on it. On is positioned on col/row: 1,1 with size: 2, 39 the other 2 are at col = 3.

Then I want to add another widget. Before I do that when I ask the rows. I'm getting this:

layout.rows
=> 339

I then do this:
layout.add_widget('<li id="layoutComp_4 class="layout_block gs-w" data-id="top_project_list"/>', 2, 39, 1, 1);

It takes a couple of seconds before it appears, and when I then check the rows again, I'm getting this:

layout.rows
=> "33939"

So it suddenly becomes a string?

What am I missing here? It doesn't matter if I add the widget at 1, 1 or at 1, 40 (which should be empty).

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