Gridster update - responsive support #2414

Merged
merged 234 commits into from Nov 21, 2015

Projects

None yet
@laf
Member
laf commented Nov 11, 2015

Switched to using a fork of Gridster.

I'd highly recommend this is tested as much as possible. It appears to cause an initial issue with the layout so people will have to redo it but I'm not sure we can resolve that :/

Did this from someone saying everything should be responsive. Not fussed either way personally as the grid system works fine as is. The one advantage that this would give is that this version of Gridster is being developed where as the old one is abandoned.

dustmoo and others added some commits Nov 20, 2012
@dustmoo dustmoo Added grid-swap behavior 898b77d
@dustmoo dustmoo Added property to prevent larger widget shifting 6746587
@dustmoo dustmoo Updated Readme 95ce88c
@dustmoo dustmoo More predictable default behavior 7738287
@dustmoo dustmoo Added swaping queue, better handling of large to small swaps 98204f1
@dustmoo dustmoo Added swaping queue, better handling of large to small swaps 262d115
@dustmoo dustmoo working on map grid functionality 136923e
@dustmoo dustmoo Fix row issue 32e5f54
@dustmoo dustmoo Swap queue awesomeness 24cd3be
@dustmoo dustmoo Swap queue awesomeness a3d2b09
@dustmoo dustmoo Good enough swap logic for now 6786984
@dustmoo dustmoo Removed console.logs ea77853
@dustmoo dustmoo Removed console.logs 179b706
@dustmoo dustmoo Added max_rows and drag restriction - ready for integration :) 44019ca
@dustmoo dustmoo Serialize bug fix 3ebf5fa
@dustmoo dustmoo Version Updates 54099ec
@dustmoo dustmoo Merge branch 'mapapp' 953fa81
@dustmoo dustmoo Updated Readme 0badd03
@dustmoo dustmoo Updated Readme 8f431a4
@dustmoo dustmoo Working on Static widgets ac8894d
@sbehrends sbehrends Added disabled dragging init feature gridster.js
In initial options you can disble draggin by adding disable_drag: true on options list at initialising gridster
1d5883b
@dustmoo dustmoo Merge pull request #7 from sbehrends/patch-1
Added disabled dragging init feature gridster.js - Thank you sbehrends
1748e6f
@dustmoo dustmoo Added Swap Demo 8b2f748
@dustmoo dustmoo Merge branch 'master' of https://github.com/dustmoo/gridster.js cb98d7d
@dustmoo dustmoo rebuilt dist 51ba8f9
@dustmoo dustmoo update readme 762dd44
@dustmoo dustmoo Better handling of widgets slideing down 3cc9485
@dustmoo dustmoo Updated sample 412ee61
@dustmoo dustmoo Update Readme 6eb5210
@rebugger rebugger add resize_widget_dimension()
resize widgets after initialization
7fe912f
@andreas-trad andreas-trad 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.
cabf37b
@kwak27 kwak27 fix add_widget to use correct size_y when adding rows 0e28203
@rebugger rebugger fix min-width and min-height after resize
remove min-width and min-height after stopping resize
6554499
Adrian fixes-add-widget-overlapping-issue-#340 72669b0
@dasmall dasmall Removing previously added style tags before adding new one.
Hopefully fixes #211 and #294.
1c3659c
Cosmin Pascu Fixed issue where existing widget position would be overwritten on gr…
…idmap when adding a faux cell to accommodate another widget.
89bce45
Cosmin Pascu Fixed typeof comparison to match against string. 4a1ef10
@rebugger rebugger add resize_widget_dimension()
resize widgets after initialization

Conflicts:
	src/jquery.gridster.js
c0bc1b9
@rebugger rebugger fix min-width and min-height after resize
remove min-width and min-height after stopping resize
c9ecfdb
@rebugger rebugger Merge branch 'resize-widget-dimensions' of https://github.com/rebugge…
…r/gridster.js into resize-widget-dimensions

Conflicts:
	src/jquery.gridster.js
97cc8b3
@AWhetter AWhetter Fixed a typo in Gridster class documentation 8940d6f
@dragonier dragonier add_resize_handle: multiple span (resizeable) entries in widgets
On init() or get_widgets_from_DOM() new span entries are added to the
widgets container.
274dee3
@Tropicalista Tropicalista Create bower.json a027c6c
@ilyasfoo ilyasfoo Changed "instanceof jQuery" to "instanceof $"
Original code will break if jquery noconflict is applied, where $ and jQuery produces jQuery instance of different versions.
cdb0f5c
@rept rept Wrong addition solved in add_faux_rows by adding parseInt 8b6a48b
@rept rept Also added parseInt to the add_faux_cols method 4525aa1
@rept rept Also added parseInt to the add_faux_cols method 9099da8
@joaoafrmartins joaoafrmartins support UMD ddf8bbd
@joaoafrmartins joaoafrmartins commonjs 17b1013
@yfix yfix Merge pull request #1 from ducksboard/master
Update from origin
a14669e
@Toosick Toosick Fix gridster destroy
Removes the coords data from each element.
821264d
@Toosick Toosick Update jquery.gridster.js 7dbd7a6
Chris Rock Added ability to specify scroll container for drag/resize 41ad5c9
cwat-bfarka fix issue #469
remove trailing comma to be more IE compliant
d09dea2
jcp fix (Gridster.js): destroy resize_api
Call  resize_api.destroy()  to fix  memory leak.
0fe7f23
Chris Rock Added destroy of widget coords and resize api bd8dbf8
@sogawa sogawa rename test files. 975e389
@sogawa sogawa add element "#qunit-testresult" 913462f
@ericmann ericmann Accepting Resize API pull request. @props tormoalto 7026f0f
@sogawa sogawa Convert to integer type of property value when sorting. 0ad0b3b
@ericmann ericmann Cache $(window) and $(this) selectors for performance 4d6abc8
@ericmann ericmann Fix the memory leak that was incorrectly iterating rows and columns 4fe62c9
Ivan Lopez add model_id parameter to add_widget method in order to create a rela…
…tionship between widget and backbone model
e773e9d
Ivan Lopez re-name model_id parameter 34b5372
@Laboratory Laboratory delete jquery dependency b0bedc6
Arthur Blomnik Fix spelling mistake d91ddd7
@ericmann ericmann Fix Widget Right Edge Collission Detection
Apply the fix from duckboard's issue tracker. Fixes #2.
4287b56
@ericmann ericmann Grunt da5e223
@ericmann ericmann Bumping to v0.5.7 c9b9757
floyd_hawkes fix(gridster): changed the way widgets were getting positioned so tha…
…t margins are actually the same size that the user specified all the way around the grid

feat(gridster): added responsive nature to grid
a391304
floyd_hawkes Release v0.6.0 754b313
floyd_hawkes fix(gridster): fixing drag limit issues when using autogrow_cols afd83fe
floyd_hawkes fix(gridster): fixed expand_widget bug not expanding full width of wi…
…ndow

fix(gridster): user can specify size_x when expanding widget
dbc226d
floyd_hawkes Release v0.6.1 9ead8c0
floyd_hawkes fix(gridster): forcing height of gridster container to auto when in c…
…ollapsed mode
749f37a
floyd_hawkes Release v0.6.2 d669045
floyd_hawkes fix(gridster): fixes bug where widgets would overlay other widgets af…
…ter a resize
61572cd
@fhawkes fhawkes Merge pull request #2 from DecksterTeam/resize-overlap
fix(gridster): fixes bug where widgets would overlay other widgets after...
04e2cf7
floyd_hawkes fix(gridster): adding bower.json file fa29663
floyd_hawkes Merge branch 'master' of github.com:DecksterTeam/gridster.js 5f86f98
floyd_hawkes fix(gridster): adding bower.json file 7654437
Glen Pike Fix for bug #493 including unit tests to prove.
Run npm install and visit test/jquery.gridster-amd.html in browser.
c0a2bde
floyd_hawkes refactor(gridster): adding callback to add_widget function 14e08d9
floyd_hawkes fix(gridster): fixing resize limits when in fixed width mode
feature(gridster): added fix_to_content function to fit widget dimensions to a given width and height
feature(gridster): added resize_widget_dimensions function
refactor(gridster): moved code to set number of columns in grid to helper function
6bb47dc
floyd_hawkes Release v0.6.3 fc75ce5
@ericmann ericmann Add an optional final parameter to add_widget. 41a183b
@ericmann ericmann Grunt changes 7db7add
@ericmann ericmann Merge in fade changes ee7b5be
@diogobenica diogobenica Change jQuery reference for $. ec253ac
Thiago Moura Include move_widget function (Move a widget to a specific row and col…
…umn.).
02a1580
Thiago Moura add function move_widget in dist/jquery.gridster.js c261a4e
floyd_hawkes #3 Adds ability to automatically center widgets in the grid. 8a5a723
floyd_hawkes Release v0.6.4 e40a393
floyd_hawkes #3 Adds ability to automatically center widgets in the grid. 16a7a65
@dsmorse dsmorse Move the check for responsive width above the calculations of width. …
…This will prevent the calculated values changing the width for browsers which don't respect min-width
aa8f4bf
@dsmorse dsmorse Move the check for responsive width above the calculations of width. …
…This will prevent the calculated values changing the width for browsers which don't respect min-width
3ec0c6f
floyd_hawkes fix(gridster): fixed bugs in centering_widgets (widgets were getting …
…smushed when being resized) and fixed bug with min_width
86053f8
floyd_hawkes Release v0.6.5 bbd9cd4
floyd_hawkes Release v0.6.5 f8d3d2d
floyd_hawkes chore(grunt): fixing versioning system d5bf56c
AWhetter and others added some commits Jul 10, 2014
@AWhetter @vieron AWhetter docs(gridster): fixed a typo in Gridster class documentation 8080dac
@ilyasfoo @vieron ilyasfoo 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.
c622630
@rept @vieron rept fix(gridster): wrong addition solved in add_faux_rows/cols by adding …
…parseInt

Closes #426, #425
d947175
@vieron vieron 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.
d3f25f3
@vieron vieron feat(gridster): browserify compatibility 43148b8
@vieron vieron 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.
e258d59
@vieron vieron chore(gridster): remove unused code 93cd01e
@vieron vieron feat(gridster.css): remove possible default pading 2002c45
@vieron vieron 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
7de5bba
@vieron vieron fix(gridster): `resize_widget` also accepts HTMLElements
for consistency with the `remove_widget`
cda560f
@vieron vieron 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.
576b5ae
@vieron vieron style(jshint): add jshint config and setup grunt task 3006d4f
@vieron vieron style(jshint): adapt code to pass jshint 9863656
@dsmorse dsmorse rev jquery version 57a2604
@dsmorse dsmorse 0.6.7 release 3a696ad
@fhawkes fhawkes fix(gridster): responsive width now resizes based off wrapper not window e69c3e8
@dsmorse dsmorse update dependencies and jshint 8473bd6
@dsmorse dsmorse Merge commit 'e69c3e8f64aa4557ef032e4d0d8185e83b1aed21'
fix(gridster): responsive width now resizes based off wrapper not window
9732b01
@dsmorse dsmorse Release v0.6.8 699fad9
@ericop ericop typo on "the" in "inactivity over the last year" d220fd9
@dsmorse dsmorse Merge pull request #4 from ericop/patch-1
typo on "the" in "inactivity over the last year"
244089c
@dsmorse dsmorse Fix bug with responsive layout if grid in wrapped in a container whic…
…h has padding. It now limits the width of the widget to the containing element (also helps with scrollbars)
4d946ea
@dsmorse Eric Johnson 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)
0a7ae2e
@dsmorse dsmorse Remove debug code fa6de00
Bill Schaller Fix gridster width setting in responsive mode
* needs to use 100% instead of 100vw because the container may be smaller than the viewport width
31aad41
Bill Schaller Fix grid calculations when wrapper/gridster element is not centered 79fc444
Bill Schaller lint fix, generated dist d60dbd1
@dsmorse dsmorse fix initialization of sticky layout. af979fa
@dsmorse dsmorse Merge branch 'zeroedin-bill-master' de59d89
Bill Schaller Fix issue where dragging a small widget up onto a bottom corner of an…
…other widget led to persistent overlap
453cfaa
Bill Schaller Fix undefined var reference to this.shift_widgets_up - should ref option a2097cc
Bill Schaller Fix undefined exception in update_widgets_dimensions c92df60
@dsmorse dsmorse fix unit tests 08da4a4
@dsmorse dsmorse Merge branch 'master' of git://github.com/zeroedin-bill/gridster.js i…
…nto zeroedin-bill-master
3cc6192
@dsmorse dsmorse Fix expanding widget issue (allow it to collapse again) 610a143
@dsmorse dsmorse JS Doc changes 0c65f0a
@dsmorse dsmorse Various bug fixes for moving widgets around d23aa41
@dsmorse dsmorse add unit test to build process b0ead24
@plamoureux plamoureux jspm config 23ad30c
@plamoureux plamoureux jspm config 55377b9
@plamoureux plamoureux jspm config e0074c6
@plamoureux plamoureux jspm config 75933da
@plamoureux plamoureux jspm config f6f16af
@plamoureux plamoureux jspm config 9dcf169
Bill Schaller Don't ignore src, I need it to build with webpack. ff73959
Bill Schaller Fix invalid require('./jquery-gridster.js') 8d3da5c
@dsmorse dsmorse Remove if statement from register_widgets that cause them to be dropp…
…ed from the DOM if they don't have a specific class on them. Fixes bug report #9
4cc6915
@dsmorse dsmorse Merge pull request #11 from zeroedin-bill/master
for traditional bower users like myself, its just one more thing to 'preen', but if it helps you lets make it happen
34b08eb
@dsmorse dsmorse enable travis 8183219
@dsmorse dsmorse travis config for bower 589864c
@dsmorse dsmorse install bower & grunt globally for travis aa2053b
@ened @dsmorse ened Create a Ruby on Rails gem b399504
@dsmorse dsmorse add badge for gem 35426a0
@dsmorse dsmorse Release v0.6.9 0ab1348
@josephndenton josephndenton fixed highlighting while resize is true c17ebfd
@dsmorse dsmorse update ruby build config 57bf55a
@dsmorse dsmorse update readme 8997809
@ened ened RoR gem missed the Engine files 4526b7f
@ened ened Fixed `npm install` warning
npm WARN package.json gridster@0.6.9 homepage field must start with a protocol.
0d75ba5
@dsmorse dsmorse Merge pull request #14 from ened/fix/package-json-url
Fixed `npm install` warning
b345264
@dsmorse dsmorse Merge pull request #15 from ened/fix/rails-gem
RoR gem missed the Engine files
278afda
@dsmorse dsmorse Merge branch 'master' of https://github.com/dsmorse/gridster.js
updates to make ruby on rails gem work. see pull Request #14 & #15
aa598a5
@dsmorse dsmorse chore: update RoR build process
Prep for 0.6.10 release.
c5da395
@spalger spalger make npm ready 99e8736
@dsmorse dsmorse chore: Merge remote-tracking branch 'spalger/master' - make npm ready 393b4fc
@dsmorse dsmorse chore: Merge remote-tracking branch 'josephndenton/master'
fixed highlighting while resize is true
9abe8c2
@dsmorse dsmorse chore: Merge remote-tracking branch 'mergeSource/master'
Add jspm support
3c10135
@dsmorse dsmorse chore: convert from css to Less 1bb8888
@dsmorse dsmorse feature: Add Chaos demo to test widget placement. 1812366
@dsmorse dsmorse fix: convert from JQury to DOM
Move from Jquery based width() for calculations to dom calls to avoid conflicts with webcomponents.js polyfills
4936ef8
@dsmorse dsmorse fix(gridster): Add additiona error checking on widgets removal
…when remove_widget is called with an empty element we need to abandon the action early to avoid exceptions
2b0f996
Christoph Matscheko Extended default options by two functions for displaying and hiding w…
…idgets so the default behavior can be overridden
5cb5c68
Christoph Matscheko update jsdoc e01c3a7
Christoph Matscheko update generated files 413aad5
Christoph Matscheko update generated files 6c2e2d4
Christoph Matscheko Revert "update generated files"
This reverts commit 6c2e2d4.
7cfda0d
Christoph Matscheko update generated files (2) 137c05c
@dsmorse dsmorse Merge pull request #19 from heartdisease/master
feat:  Extended default options by two custom functions for showing and hiding widgets
a1d77eb
@Nedlinin Nedlinin Fix issue with the dragging of widgets pushing off to the right funny…
… with larger margin sizes. The margin was not being taken into account for the new position properly. This meant that if you were in column 10 and the margin was set to 20px the previous calculation was off by 200 pixels. New calculation for the placeholder position and the drag stop position takes the margin for the sizes multiplied by the column we want to determine how far to offset left.
f9b579a
@Nedlinin Nedlinin Build new distributable files. 6a7a2c5
@dsmorse dsmorse Merge pull request #22 from Nedlinin/master
Fix issue with the dragging of widgets pushing off to the right funny…
af9abd8
@randoum randoum Remove 'bootstrap-typeahead-rails' require 4d1beac
@dsmorse dsmorse Merge pull request #23 from randoum/patch-1
Remove 'bootstrap-typeahead-rails' require statement
fb5b174
@emackey emackey Fix the responsive grid to be able to shrink. f3ce227
@stenverbois stenverbois fix: Apply fix from #22 to vertical positioning dfc6491
@dsmorse dsmorse Merge pull request #26 from emackey/fix-responsive-grid
Fix the responsive grid to be able to shrink.
df205b0
@dsmorse dsmorse Merge pull request #27 from stenverbois/master
fix: Apply fix from #22 to vertical positioning
9930ae4
@luke-browning luke-browning Fire draggable.stop event after data attributes have been updated. 73b5712
@dsmorse dsmorse Merge pull request #31 from luke-browning/master
Fire draggable.stop event after data attributes have been updated.
a7ed9a4
@laf laf Updated gridster in makefile 80f8419
@laf laf Add 'lib/gridster/' from commit 'a7ed9a4adec9f7c8361ad6f392993a1f0b9c…
…1601'

git-subtree-dir: lib/gridster
git-subtree-mainline: 80f8419
git-subtree-split: a7ed9a4
c5d4c0a
@laf laf Updated to be responsive
248c200
@laf laf added the WebUI label Nov 11, 2015
@f0o
Member
f0o commented Nov 20, 2015

trigger ci

@f0o f0o merged commit 93f85af into librenms:master Nov 21, 2015

2 checks passed

Auto-Deploy Build finished. No test results found.
Details
Scrutinizer No new issues
Details
@laf laf deleted the laf:gridster branch Nov 21, 2015
@Rosiak Rosiak referenced this pull request Jan 10, 2016
Closed

Alerts Widget #2463

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment