Commit Graph
48 Commits
Author SHA1 Message Date
vieron 5f4e6ded39 fixed index error in for loop. Fixes #16. 2012-08-08 20:37:02 +02:00
vieron 148963d12f added max_size_x and max_size_y as configurable options. Fixes #16.
The maximum number of columns/rows that a widget can span
was hardcoded to 6. Maybe it makes sense for dashboards but
not for other uses of gridster.
2012-08-08 01:21:30 +02:00
vieron dc0a548bd4 stupid typos 2012-08-07 00:59:58 +02:00
vieron ca7577950e don't start drag if <button> is clicked 2012-08-07 00:59:00 +02:00
vieron f359a7eb76 fixed typo in docs 2012-08-06 23:55:30 +02:00
vieron 1316a37e60 added touch support. Closes #12, closes #9 2012-08-05 12:39:51 +02:00
vieron 0e942677ec increased scroll area size and scroll speed 2012-08-05 11:00:08 +02:00
vieron 39a473cedf Doing form elements inside widgets clickable. Fixes #7. 2012-08-03 23:49:46 +02:00
vieron 9987989c8c Caching $(document.body) once document is ready. Fixes #10. 2012-08-03 16:45:49 +02:00
vieron 4048784eaf Forcing conversion to arrays before calling Math.max 2012-07-30 21:17:03 +02:00
vieron 6972f9fb33 recalculate grid height when a widget is removed 2012-07-27 17:55:04 +02:00
Jan Urbański f4e425ced2 switch to using the MIT license exclusively 2012-07-27 13:29:07 +02:00
vieron 341e1bbd4c prevent cols/rows from being empty arrays (needed to pass phantom tests) 2012-07-26 09:58:39 +02:00
vieron e4e06f4cde gridster: passing Math (not null) as first argument in Math.max.apply() 2012-07-25 17:58:18 +02:00
vieron f12cebb33e increased the mouse area that triggers scroll 2012-07-24 17:05:07 +02:00
vieron 06b53fdc19 throttling to 60ms to prevent overlapping 2012-07-24 16:56:16 +02:00
vieron 0016c99a61 offsetX is not needed 2012-07-24 16:55:53 +02:00
vieron 3460a436b2 scroll logic based on mouse position, not in items position 2012-07-24 16:25:43 +02:00
vieron 3456aef408 trottling drag callback 2012-07-24 15:40:49 +02:00
vieron b5a2a2c4cd scroll document when dragging up or down 2012-07-24 15:40:32 +02:00
vieron 443d0fbc29 jslinting 2012-07-24 10:34:12 +02:00
vieron 4eb679fb78 documentation fixes 2012-07-23 22:51:04 +02:00
vieron 33b8f206cf updated Gridster doc and code style corrections 2012-07-23 22:07:43 +02:00
vieron 7e8ce8dd0a Coords constructor documentation 2012-07-23 21:50:15 +02:00
vieron 7ae385ea05 some small documentation for draggable class 2012-07-23 21:49:53 +02:00
vieron 00e7c46b31 avoid calls to empty functions in defaults object 2012-07-23 21:48:25 +02:00
vieron bf2ee67450 only start drag with right click 2012-07-23 21:46:27 +02:00
vieron 981895eab4 default value for css transitions is: "all 0s" not "none" 2012-07-23 21:44:51 +02:00
vieron f650da8586 fixing tab spaces and some documentation 2012-07-23 21:44:03 +02:00
vieron f0a50649d1 removing playing-revert class when gridster is disabled 2012-07-23 15:14:53 +02:00
vieron d1b7009fc9 improved and more robust css 2012-07-23 11:04:33 +02:00
vieron 3e1d005585 don`t recalculate offset if it is passed to the update method 2012-07-23 11:03:06 +02:00
vieron 0446186c98 utils: throttle, debounce 2012-07-23 11:02:18 +02:00
vieron 288df54e86 basic jQuery draggable plugin 2012-07-23 11:01:48 +02:00
vieron 5edfe0a488 new methods, fixes and improvements:
- new disable, enable methods

- don't generate duplicated stylesheets for the same origin config

- new configuration option called avoid_overlapped_widgets. Avoid that widgets loaded from the DOM can be overlapped. It is helpful if the positions were bad stored in the database or if there was any conflict.

- Removed jquery ui dependencie.

- Fix to prevent widgets go out of the grid.

- New methods to get all widgets from a column or row.

- generate_stylesheets method now supports namespaces to generate multiple stylesheets based on a parent class.
2012-07-23 11:01:05 +02:00
vieron 1507974e07 collision: don't calculate player coords if we have it 2012-07-23 10:53:57 +02:00
vieron 18b620f6ce the remove_widget callback must be inside the fadeout callback 2012-07-20 15:47:39 +02:00
vieron fbeb2ac05c fixed add_widget method 2012-07-20 14:03:24 +02:00
vieron 9dbad2b29e remove_widget accepts a callback as second argument 2012-07-20 14:03:03 +02:00
vieron 7624182bf4 updated docs and diet 2012-07-20 11:06:26 +02:00
vieron 0e03a05435 namespaced gridster events: dragstart, dragstop, drag 2012-07-20 11:04:54 +02:00
vieron 79bec6897f using next_positions inside add_widget method 2012-07-19 16:44:49 +02:00
vieron 97074001bb fixed a bug that caused next_positions method redefinition 2012-07-19 16:10:31 +02:00
vieron 2bcd943fff new method to get the next position of a new widget 2012-07-19 15:56:01 +02:00
vieron b83d993d4b recalculate faux grid offsets when browser is resized 2012-07-19 11:08:10 +02:00
vieron 31028a3975 fixed compatibility issues with the helper:clone option of Draggable 2012-07-18 21:48:53 +02:00
vieron 6fe6f720da documentation typos 2012-07-18 19:08:36 +02:00
vieron 257914ee99 initial commit 2012-07-18 18:31:44 +02:00