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

add widget very slow #427

Open
yamila-fraiman opened this issue Sep 11, 2014 · 4 comments
Open

add widget very slow #427

yamila-fraiman opened this issue Sep 11, 2014 · 4 comments

Comments

@yamila-fraiman
Copy link

Hi, i know there is a performance problem when adding new widgets. I think the problem is in the next_position function.
Is there any solution? I need to add houndred of widgets and actually my browser stops. Or could you recommend me a similar plugin with drag & drop, resize, etc?
Thanks.

@jhowley89
Copy link

take a look at #426

@yamila-fraiman
Copy link
Author

This does not solve my problem. I can't insert 50 rows without breaking the browser.

@yamila-fraiman
Copy link
Author

For example:

for (var i = 0; i < 50; i++) {
addWidget('Hello world.', 15, 10);
}
function addWidget(content, size_x, size_y, col, row) {
gridster.add_widget('< li class="gs-w">' + content + '< /li>', size_x, size_y, col, row);
}

@jhowley89
Copy link

can you create a simple jsfiddle?

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

2 participants