346 Commits

Author SHA1 Message Date
7d22e6c8b2 fix(gridster): fix add_widget to use correct size_y when adding rows 2014-06-16 17:03:00 +02:00
bb7463a324 fix(draggable): replaced scrollX/Y with scrollLeft/Top
window.scrollX/Y is only available in Chrome, not in IE
2014-06-16 17:03:00 +02:00
c726c4ad9c fix(draggable): fix offset during drag
when the scrollX/Y is changed during drag (e.g. by the mousewheel)
the offset wasn't correct
2014-06-16 17:03:00 +02:00
93c46ff45e fix(gridster): Removing previously added style tags before adding new one.
Hopefully fixes #211 and #294.
2014-06-16 16:59:20 +02:00
dd6c742008 fix(draggable): bind drag events to $document
$body won't receive mouseup if the cursor is outside the browser window, $document does
2014-06-16 16:59:07 +02:00
4a1ef1029b Fixed typeof comparison to match against string. 2014-05-14 15:38:18 -07:00
89bce45fc1 Fixed issue where existing widget position would be overwritten on gridmap when adding a faux cell to accommodate another widget. 2014-04-30 04:34:45 -07:00
1c3659c9d0 Removing previously added style tags before adding new one.
Hopefully fixes #211 and #294.
2014-04-10 16:22:43 -04:00
72669b0cf6 fixes-add-widget-overlapping-issue-#340 2014-04-09 12:19:29 -04:00
6554499a93 fix min-width and min-height after resize
remove min-width and min-height after stopping resize
2014-04-08 15:08:50 +02:00
0e28203ea9 fix add_widget to use correct size_y when adding rows 2014-04-03 11:32:39 -07:00
cabf37be48 Prevent multi <style> generation
If the autogenerate_stylesheet option is set to true then the library is adding multiple times the same style on the head of the document (see the source of the http://gridster.net/demos/adding-widgets-dynamically.html demo in order to observe this). With this correction the gridster style element is only inserted once on the style.
2014-04-02 17:26:20 +03:00
7fe912fa35 add resize_widget_dimension()
resize widgets after initialization
2014-04-01 18:30:53 +02:00
a4f3baf38f update dist 2014-03-26 12:38:25 +01:00
69fcfe4596 feat(draggable): allow ignore_dragging config option to be a function 2014-03-26 12:38:06 +01:00
f1ad03cc36 chore: update dist 2014-03-13 00:11:55 +01:00
03910df967 feat(draggable): option to not remove helper on drag stop 2014-03-13 00:11:29 +01:00
b84f364d4a Release v0.5.1 2014-03-05 19:02:30 +01:00
dc09f191d8 feat(gridster): destroy element's data and optionally remove from DOM 2014-03-05 18:26:45 +01:00
04868a384d feat(draggable): keep container position prop if different than static 2014-03-05 17:47:39 +01:00
6f22217f05 feat(coords): allow both (left/x1) and (top/y1) attr keys 2014-03-05 17:36:11 +01:00
fdeee4f636 feat(coords): add destroy method 2014-03-05 17:33:04 +01:00
720d487e39 feat(collision): overlapping region as a config option 2014-03-05 17:29:45 +01:00
967984f16b Release v0.5.0 2014-02-14 13:13:39 +01:00
073fdc40e0 feat(draggable): Add toggle draggable method. 2014-02-14 13:09:03 +01:00
e21f63a05a fix(resize.stop): Call resize.stop at the latest possible moment
Previously the resize.stop callback was being called before the widget
had reached the end size that Gridster would make it (the widget grows
to match the placeholder size after releasing the drag)

This change pushes the resize.stop callback to the last possible moment
where the size of the widget the callback receives is more likely to be
correct.

Signed-off-by: ciaranj <ciaranj@gmail.com>

Conflicts:
	src/jquery.gridster.js
2014-02-14 13:09:03 +01:00
835c2df844 fix(autogrow): refining autogrow_cols behavior and grid width issues 2014-02-14 13:09:02 +01:00
9796c44dc6 Release v0.4.4 2014-02-13 11:27:48 +01:00
7ca8deec85 feat(resize): add start/stop/resize event triggers 2014-02-13 11:26:56 +01:00
6121eb6888 Release v0.4.3 2014-02-11 01:05:24 +01:00
f8b04f298e fix(generated-styles): cleaning cached serializations properly 2014-02-11 01:04:32 +01:00
e76eed7ac4 Release v0.4.2 2014-02-07 18:28:23 +01:00
4774597834 fix: recalculate grid width when adding widgets 2014-02-07 18:27:07 +01:00
7c1453c6be chore: fix mistakes in changelog 2014-02-07 15:15:30 +01:00
6eef93cc16 Release v0.4.1 2014-02-07 15:10:48 +01:00
5672edb05e fix: add resize.min_size option to default config object 2014-02-07 15:09:55 +01:00
46e0abe346 Release v0.4.0 2014-02-07 14:48:53 +01:00
1aee438bec chore: Updated node package dependencies to work on clean system.
qunit->qunitjs and jquery 2.0 isn't listed in npm repository so
replaced it with the git location.
2014-02-07 14:48:53 +01:00
7ed79e5672 fix(gridster): leaking options with multiple Gridster instances
`defaults` was being overwritten.

See [jQuery documentation](http://api.jquery.com/jQuery.extend/):

> Keep in mind that the target object (first argument) will be modified, and will also be returned from $.extend().
2014-02-07 14:48:53 +01:00
429c776aa9 feat(resize): add option to set min_size of a widget 2014-02-07 14:48:53 +01:00
e9d8d8d6e2 fix(readme): link title jsfiddle -> jsbin, edit 5) of process steps 2014-02-07 14:48:53 +01:00
6f20723039 fix(licenses): add required copyright message for underscore
Add the copyright message for the code taken from underscore as required
by the MIT license.
2014-02-07 14:48:53 +01:00
e9dc513457 fix(gridster): resize.axes default option only 'both'
If passing resize.axes option it will be
what is defined and not ['x','y','both'].
2014-02-07 14:48:53 +01:00
04cb32f6f3 Release v0.3.0 2014-02-07 14:48:53 +01:00
b65a802964 feat(gridster): increase grid width when dragging or resizing 2014-02-07 14:48:52 +01:00
8fa3ad258f feat(draggable): method to set drag limits dynamically 2014-02-07 14:48:52 +01:00
3e426c9301 chore: rename calculate_positions to calculate_dimensions 2014-02-07 14:48:52 +01:00
b0b4464a5c feat(draggable): support horizontal scrolling while dragging 2014-02-07 14:48:52 +01:00
381a881501 chore: use $ instead of jQuery inside gridster 2014-02-07 14:48:52 +01:00
b6ec35252d chore: add bitdeli badge to readme 2013-12-10 17:26:45 +01:00