Commit Graph
427 Commits
Author SHA1 Message Date
David Morse 08da4a4d74 fix unit tests 2015-05-18 21:17:13 -06:00
David Morse de59d89933 Merge branch 'zeroedin-bill-master' 2015-05-18 12:25:46 -06:00
David Morse af979faaf5 fix initialization of sticky layout. 2015-05-18 12:20:36 -06:00
Bill Schaller d60dbd1e3e lint fix, generated dist 2015-05-18 13:47:29 -04:00
Bill Schaller 79fc444e39 Fix grid calculations when wrapper/gridster element is not centered 2015-05-18 13:32:43 -04:00
Bill Schaller 31aad418af Fix gridster width setting in responsive mode
* needs to use 100% instead of 100vw because the container may be smaller than the viewport width
2015-05-18 13:31:19 -04:00
David Morse fa6de00e3a Remove debug code 2015-05-18 02:37:53 -06:00
Eric JohnsonandDavid Morse 0a7ae2ee99 Add new demo page and allow two new features based on Issue #6:
- delay moving components until drag is complete
- allow exact position of grid components (do not move up)
2015-05-18 02:28:57 -06:00
David Morse 4d946ead88 Fix bug with responsive layout if grid in wrapped in a container which has padding. It now limits the width of the widget to the containing element (also helps with scrollbars) 2015-05-13 12:15:05 -06:00
dsmorse 244089c01f Merge pull request #4 from ericop/patch-1
typo on "the" in "inactivity over the last year"
2015-05-12 17:55:07 -06:00
ericop d220fd912f typo on "the" in "inactivity over the last year" 2015-05-12 13:39:50 -04:00
David Morse 699fad9d06 Release v0.6.8 2015-04-28 21:25:41 -06:00
David Morse 9732b017eb Merge commit 'e69c3e8f64aa4557ef032e4d0d8185e83b1aed21'
fix(gridster): responsive width now resizes based off wrapper not window
2015-04-28 21:18:55 -06:00
David Morse 8473bd6d9d update dependencies and jshint 2015-04-28 21:00:24 -06:00
Floyd Hawkes e69c3e8f64 fix(gridster): responsive width now resizes based off wrapper not window 2015-04-22 16:23:13 -04:00
David Morse 3a696ad732 0.6.7 release 2015-04-16 15:05:15 -06:00
David Morse 57a2604365 rev jquery version 2015-04-16 15:01:31 -06:00
Javi Sánchez-Marín 9863656b5c style(jshint): adapt code to pass jshint 2015-04-16 20:26:19 +02:00
Javi Sánchez-Marín 3006d4f393 style(jshint): add jshint config and setup grunt task 2015-04-16 20:26:19 +02:00
Javi Sánchez-Marín 576b5ae3f0 fix(gridster): ensure coords instances are destroyed on widgets
…when removing a widget, or when destroying the gridster instance.
Before this change, if you called destroy without `remove` set to true,
coords instances was leaking jQuery data objects.

Also nullified the gridmap, and faux_grid arrays.
2015-04-16 20:26:19 +02:00
Javi Sánchez-Marín cda560f4f3 fix(gridster): resize_widget also accepts HTMLElements
for consistency with the `remove_widget`
2015-04-16 20:26:18 +02:00
Javi Sánchez-Marín 7de5bbabc0 feat(gridster): add config to set custom show/hide widget methods
by default jQuery’s `hide` and `show` methods are used. You could also
use fadeIn/fadeOut or write your own kind of jQuery plugin like
`$.fn.showInAFancyWay` and use `showInAFancyWay` as the value in the
show_method config option.

If you want to keep the previos behaviour, you need to set
`hide_method` option to `’fadeOut’`

Breaking Changes

`remove_widget` and `remove_all_widgets` methods not return a promise
instead of the gridster instance
2015-04-16 20:26:18 +02:00
Javi Sánchez-Marín e258d595b0 tests(gridster): add basic test suite for gridster
Tests are build with mocha + chai, and you can run them from the command line with `grunt karma` or opening `test/index.html` in your browser.

This is a first approach, there are hundreds of tests more that should be added.
I’ve ported some tests on PRs but more needs to be done.
2015-04-16 20:26:18 +02:00
Javi Sánchez-Marín 2002c45595 feat(gridster.css): remove possible default pading 2015-04-16 20:26:18 +02:00
Javi Sánchez-Marín 93cd01ecc3 chore(gridster): remove unused code 2015-04-16 20:26:18 +02:00
Ashley WhetterandJavi Sánchez-Marín 8080daccd1 docs(gridster): fixed a typo in Gridster class documentation 2015-04-16 20:26:18 +02:00
aegisrunestoneandJavi Sánchez-Marín c6226306c2 fix(gridster): changed "instanceof jQuery" to "instanceof $"
Original code will break if jquery noconflict is applied, where $ and jQuery produces jQuery instance of different versions.
2015-04-16 20:26:18 +02:00
Stijn VerreptandJavi Sánchez-Marín d947175257 fix(gridster): wrong addition solved in add_faux_rows/cols by adding parseInt
Closes #426, #425
2015-04-16 20:26:18 +02:00
Javi Sánchez-Marín d3f25f3fbb feat(draggable): autoscrolling
If the element being dragged is inside a scrollable container, keeping the
mouse in one of the sides of the container will trigger scroll.
2015-04-16 20:26:18 +02:00
Javi Sánchez-Marín 43148b87e5 feat(gridster): browserify compatibility 2015-04-16 20:26:18 +02:00
floyd_hawkes 65f43a529f Release v0.6.6 2015-04-14 13:18:54 -04:00
fhawkes 0286676e16 Merge pull request #6 from DecksterTeam/dadams
Resize handles
2015-04-14 13:17:59 -04:00
Donald Adams 6c5ef28853 preventing gridster from creating extra resize handles while centering 2015-04-14 12:59:41 -04:00
Donald Adams 12f4ab181d Revert "fix(gridster): preventing gridster from adding extra resize handles"
This reverts commit 9d077da676.
2015-04-14 12:55:49 -04:00
Donald Adams 9d077da676 fix(gridster): preventing gridster from adding extra resize handles 2015-04-14 12:33:04 -04:00
joaoafrmartinsandJavi Sánchez-Marín 446852a260 feat(gridster): Common.js support
Closes #434
2015-04-14 11:43:35 +02:00
Javi Sánchez-Marín ccbac1fcc3 chore: bump up jquery version to 2.1.3 2015-04-14 11:43:35 +02:00
jcpandJavi Sánchez-Marín b16293268c fix(gridster): destroy resize_api
Call  `resize_api.destroy()`  to fix  memory leak.

Closes #473
2015-04-14 11:43:23 +02:00
Javi Sánchez-Marín 595a94f1bd fix(gridster): ensure widget dimensions and coords are always ints
Thanks to @sogawa for reporting
2015-04-14 11:39:55 +02:00
David Morse 7af6bf7a98 Add unit testing for core API, ensure all demos work, and add unit testing to ensure they stay working. 2015-04-12 23:26:19 -06:00
David Morse 385cc757ac bring the Demo's into master for testing & Automate the updates to gh-pages branch 2015-04-10 12:26:54 -06:00
David Morse 69f9c81d48 Update Samples 2015-04-09 08:37:29 -06:00
David Morse 59b475d0d1 Merge commit '6eb521015cda5212f6fa92492dbe4050bd92e00c'
* commit '6eb521015cda5212f6fa92492dbe4050bd92e00c':
  Update Readme
  Updated sample
  Better handling of widgets slideing down
  update readme
  rebuilt dist
  Added Swap Demo
  Added disabled dragging init feature gridster.js
  Working on Static widgets
2015-04-09 00:25:16 -06:00
David Morse f29ab737ed Merge from dustmoo/gridster.js
* commit '8f431a423302c7c58f511d5ede9270077993f9b3':
  Updated Readme
  Updated Readme
  Version Updates
  Serialize bug fix
  Added max_rows and drag restriction - ready for integration :)
  Removed console.logs
  Removed console.logs
  Good enough swap logic for now
  Swap queue awesomeness
  Swap queue awesomeness
  Fix row issue
  working on map grid functionality
2015-04-08 23:48:53 -06:00
David Morse 0cd0af947b Merge from dustmoo/gridster.js
* commit '262d115cf8b5bdaed40a7e5b6aaa6df6e71b6a07':
  Added swaping queue, better handling of large to small swaps
  Added swaping queue, better handling of large to small swaps
  More predictable default behavior
  Updated Readme
  Added property to prevent larger widget shifting
  Added grid-swap behavior
2015-04-08 23:22:58 -06:00
David Morse 08628126f5 Fix my merge error from the merge from remote-tracking branch 'cpascu/gridster.js/faux-rows-patch' 2015-04-08 22:40:49 -06:00
David Morse 8f6d18ea9a Release v0.6.6 2015-04-08 09:44:39 -06:00
David Morse 853e1fc72e Update Readme 2015-04-08 09:37:06 -06:00
David Morse a908eaecae Merge remote-tracking branch 'Laboratory/gridster.js.git/master'
* Laboratory/gridster.js.git/master:
  delete jquery dependency
2015-04-08 09:04:08 -06:00
David Morse 4e2697e3d4 Merge remote-tracking branch 'yfix/gridster.js.git/master'
* yfix/gridster.js.git/master:
2015-04-08 08:36:18 -06:00