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

Widgets not re-arranged correctly after resize_widget #262

Closed
mtruneck opened this issue Nov 21, 2013 · 1 comment
Closed

Widgets not re-arranged correctly after resize_widget #262

mtruneck opened this issue Nov 21, 2013 · 1 comment

Comments

@mtruneck
Copy link

I wanted to make minimalisation function in gridster, but the resize_widget probably breaks something...

I tried to isolate the problem in this jsFiddle:
http://jsfiddle.net/Q2KB6/

When you click on "up" text on the left upper widget and then again click on "down", the widget below this one will goo far far down.

I use Firefox 24 and gridster 0.2.1

@mtruneck
Copy link
Author

I finally managed to found the issue. The thing is that I parsed the new size from element attributes which caused that the type of the variable was string instead of number. Then, (1 + 5) was not 6 but 15, which explained a lot.

Although this is obviously my fault, I suggest adding variable type checks to the beginning of functions.

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