diff --git a/demo/column.html b/demo/column.html index 189a0400a..8de31e93b 100644 --- a/demo/column.html +++ b/demo/column.html @@ -18,16 +18,19 @@

setColumn() grid demo

- Add Widget - 1 Column - 2 Column - 3 Column - 4 Column - 6 Column - 8 Column - 10 Column - 12 Column -

+
Number of Columns: 12
+
+ Add Widget + 1 Column + 2 Column + 3 Column + 4 Column + 6 Column + 8 Column + 10 Column + 12 Column +
+
@@ -36,6 +39,7 @@

setColumn() grid demo

var $grid = $('.grid-stack'); $grid.gridstack({float: true}); grid = $grid.data('gridstack'); + var $text = $('#column-text'); $grid.on('added', function(e, items) {log(' added ', items)}); $grid.on('removed', function(e, items) {log(' removed ', items)}); @@ -74,15 +78,14 @@

setColumn() grid demo

grid.addWidget($('
' + count++ + (n.text ? n.text : '') + '
'), n); }); - $('#1column').click(function() { grid.setColumn(1); }); - $('#2column').click(function() { grid.setColumn(2); }); - $('#3column').click(function() { grid.setColumn(3); }); - $('#4column').click(function() { grid.setColumn(4); }); - $('#6column').click(function() { grid.setColumn(6); }); - $('#6column').click(function() { grid.setColumn(6); }); - $('#8column').click(function() { grid.setColumn(8); }); - $('#10column').click(function() { grid.setColumn(10); }); - $('#12column').click(function() { grid.setColumn(12); }); + $('#1column').click(function() { grid.setColumn(1); $text.text(1);}); + $('#2column').click(function() { grid.setColumn(2); $text.text(2);}); + $('#3column').click(function() { grid.setColumn(3); $text.text(3);}); + $('#4column').click(function() { grid.setColumn(4); $text.text(4);}); + $('#6column').click(function() { grid.setColumn(6); $text.text(6);}); + $('#8column').click(function() { grid.setColumn(8); $text.text(8);}); + $('#10column').click(function() { grid.setColumn(10); $text.text(10);}); + $('#12column').click(function() { grid.setColumn(12); $text.text(12);}); }); diff --git a/demo/responsive.html b/demo/responsive.html index 523b569ee..295e8bc93 100644 --- a/demo/responsive.html +++ b/demo/responsive.html @@ -1,9 +1,6 @@ - - - Responsive grid demo @@ -15,85 +12,59 @@ -
-
-
-
-
-
+

Responsive grid demo

-
- Number of Columns: + Number of Columns:
-
-
- diff --git a/doc/CHANGES.md b/doc/CHANGES.md index 42b8ee5f0..57cdd74db 100644 --- a/doc/CHANGES.md +++ b/doc/CHANGES.md @@ -29,7 +29,8 @@ Change log ## v0.6.0-dev (upcoming changes) - one column mode (<768px by default) now simply calls `setColumn(1)` and remembers prev columns (so we can restore). This gives -us full resize/re-order of items capabilities rathern than a locked CSS only layout (see prev rev changes). +us full resize/re-order of items capabilities rathern than a locked CSS only layout (see prev rev changes). [#1120](https://github.com/gridstack/gridstack.js/pull/1120) +- fixed responsive.html demo [#1121](https://github.com/gridstack/gridstack.js/pull/1121) ## v0.6.0 (2019-12-24)