Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rept opened this issue Sep 8, 2014 · 1 comment

Comments

@rept
Copy link

rept commented Sep 8, 2014

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).

@rept
Copy link
Author

rept commented Sep 8, 2014

Solved this with pull request: #426 which solved my problem.

vieron pushed a commit to vieron/gridster.js that referenced this issue Apr 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant