Commit Graph
17185 Commits
Author SHA1 Message Date
vieron 010444f57c Allow widgets to start in a specific col+row on the grid 2012-08-18 22:10:12 +02:00
vieron 32ea0da04b wip: resize widget feature 2012-08-18 22:10:12 +02:00
vieron 04301f48c9 updated dist 2012-08-18 19:47:26 +02:00
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
danzel 3e69cab1f2 Remove included leaflet, no longer required 2012-08-13 10:40:24 +12:00
danzel 834e9023e5 Update build 2012-08-13 10:40:04 +12:00
danzel 80976df206 Update all examples to work and use the CDN leaflet 2012-08-13 10:39:38 +12:00
vieron 8e7a5cec53 prevent selection when dragging 2012-08-13 00:35:28 +02:00
danzel 195340c8be Custom example doesn't need the default styles, just the MarkerCluster.css ones (for animations) 2012-08-13 10:15:13 +12:00
danzel fc1babc776 Increase default maxClusterRadius to look nicer with new centering changes. 2012-08-13 10:13:41 +12:00
danzel a498cd47c2 Clean up adding markers to existing clusters with the new centering changes 2012-08-13 10:13:41 +12:00
danzel 415497fdcf As we no longer move cluster we don't need to update them in the DistanceGrid as we cluster 2012-08-13 10:13:40 +12:00
Vladimir Agafonkin f3fddb835d use first point as centers while clustering, use weighted centers on display 2012-08-13 10:13:40 +12: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
Ryan Murphy 585ac5be60 Fixed custom example; needed updated 'src' links 2012-08-10 11:37:53 -05:00
danzel eee1aba847 Update Build 2012-08-10 16:05:57 +12:00
danzel aed2816986 Clone the LatLng rather than taking a reference so we don't break it when we edit it. 2012-08-10 16:05:49 +12:00
danzel 7b568d10e6 Merge remote-tracking branch 'mourner/cluster-centers' 2012-08-10 16:00:06 +12:00
danzel f9976ac8fc Update Build. 2012-08-10 15:58:57 +12:00
danzel 777c1d264c Fix up addLayer with the gridder optimizations. 2012-08-10 15:58:44 +12:00
mourner 17522d8fc3 cleanup code a bit 2012-08-09 23:12:30 +03:00
Vladimir Agafonkin 755cd3cb64 calculate point average as cluster center instead of bounds center 2012-08-09 18:10:20 +03:00
Vladimir Agafonkin 79737cdab5 remove DistanceGrid#replaceObject (not needed) 2012-08-09 17:02:37 +03:00
Vladimir Agafonkin 58aaf37924 improve performance 4-20 times with grid-based near neighbor search 2012-08-09 16:24:51 +03: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
danzel 8b42747690 Fix up styles for IE again, works better for 7/8 now. 2012-08-07 13:47:23 +12:00
danzel 1d88075769 Update the build 2012-08-07 11:32:18 +12:00
danzel 7254719ac6 Fix #27 for touch zoom 2012-08-07 11:31:39 +12:00
danzel c698e2ed54 Working on #27. This fixes the animation on desktop but not mobile. 2012-08-07 11:19:39 +12: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
danzel 3ef5afc11f Make clearLayers work when we aren't on the map. Fixes #26 2012-08-07 10:15:36 +12: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