Commit Graph
95 Commits
Author SHA1 Message Date
vieron 1d65da9260 Improving the way that rows are calculated. Related to #30.
Until now, the number of rows for the faux grid (this.cols) was calculated taking the highest
value among min_rows option, the highest widget, and the number of rows
that fits on the wrapper height (based on widget_base_dimensions, widget_margins
and extra_rows options).

In addition to this, styles for data-row attributes ara generated based on
this.cols (above) plus a constant value of 10. This was done to reduce
the number of cells by which iterate when dragging, but it's not very logical...

So, now the number of rows is calculated by adding the height of all widgets.
In this way we ensure that there is always available cells in the grid.
Also the same number of rows are generated for both the faux grid and
the DOM grid (css styles).
2012-08-18 19:34:47 +02:00
vieron 3ba70b7453 updated dist 2012-08-14 00:11:01 +02:00
vieron 573ed66922 fixes in drag/stop callbacks. Related to #23.
- break ondrag callback execution if stop event already was fired.
- unset this.$player after the execution of draggable.stop callback.
2012-08-14 00:06:03 +02:00
vieron 81c96b92d5 fixed: drag api access from gridster and draggable.disable method.
Fixes #25. I broke this in the issue #17 and commit 8e7a5c.
2012-08-13 22:32:35 +02:00
vieron 0fadccaa2f updated dist 2012-08-13 01:18:12 +02:00
vieron 8e7a5cec53 prevent selection when dragging 2012-08-13 00:35:28 +02:00
vieron 6c9eaf067d Fixes related to overlapping problems. Solve part of #4.
Some fixes are about errors (seen in the link provided by @floflow in #16)
produced by drag large blocks.
2012-08-12 18:47:02 +02:00
vieron c047153f05 updated dist 2012-08-08 23:36:59 +02:00
vieron d78bd254bd renamed jQuery adapter for Draggable class to $.fn.drag. Fixes #17.
Prevents name collisions with jQuery UI draggable module.
2012-08-08 23:33:31 +02:00
vieron 2c16638905 updated dist 2012-08-08 20:39:08 +02:00
vieron 5f4e6ded39 fixed index error in for loop. Fixes #16. 2012-08-08 20:37:02 +02:00
vieron 568f7210ea updated dist 2012-08-08 01:23:33 +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 151b3bffa6 updated dist 2012-08-07 01:01:00 +02:00
vieron 7dbf396e9c grunt: modified watch command config 2012-08-07 01:00:49 +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 ded20e32f1 updated dist 2012-08-06 23:55:48 +02:00
vieron f359a7eb76 fixed typo in docs 2012-08-06 23:55:30 +02:00
vieron 6e8de6d9ab updated dist 2012-08-05 12:40:27 +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 9bf0283a1f updated dist 2012-08-03 23:51:55 +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 c03a11eed8 updated dist 2012-07-30 21:20:44 +02:00
vieron 4048784eaf Forcing conversion to arrays before calling Math.max 2012-07-30 21:17:03 +02:00
vieron d6d3c67ea4 updated dist 2012-07-30 12:49:42 +02:00
vieron 07784bc1a0 updated grunt config to generate a copy of dist/ inside gh-pages 2012-07-30 12:49:28 +02:00
vieron dffdc794c7 generated dist 2012-07-27 17:56:15 +02:00
vieron 6972f9fb33 recalculate grid height when a widget is removed 2012-07-27 17:55:04 +02:00
Jan Urbański 698bc9c5f1 generated dist 2012-07-27 13:51:15 +02:00
Jan Urbański 817c9936ad change homepage url and description 2012-07-27 13:51:10 +02:00
Jan Urbański 5006689bad add a simple README file 2012-07-27 13:40:56 +02:00
Jan Urbański 74cc7c49a9 generated dist 2012-07-27 13:29:50 +02:00
Jan Urbański d84de52886 update .gitignore 2012-07-27 13:29:42 +02:00
Jan Urbański ec60bde4df make the description more descriptive 2012-07-27 13:29:31 +02:00
Jan Urbański f4e425ced2 switch to using the MIT license exclusively 2012-07-27 13:29:07 +02:00
Jan Urbański 9cdd02df41 get rid of jquery-ui, not used anymore 2012-07-27 13:28:15 +02:00
vieron a993008afb removing also demo site from master 2012-07-26 12:37:02 +02:00
vieron c46c348223 removing docs from master 2012-07-26 12:35:39 +02:00
vieron fe1a536a31 modified grunt to generate docs in gh-pages folder 2012-07-26 12:34:48 +02:00
vieron cf4e876a84 updated dist 2012-07-26 10:00:00 +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 c6e77dc661 generated dist 2012-07-25 17:59:01 +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 cdf8e26c64 updated docs and dist 2012-07-24 16:56:37 +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