Skip to content

Commit 85bc82e

Browse files
author
Alain Dumesny
committed
removed oneColumnModeClass and associated code
* If you depended on this, use class `.grid-stack-1` instead of `.grid-stack-one-column-mode` since it is 1 column layout anyway * updated jasmin test * should have been done in #1120
1 parent 27a3f5f commit 85bc82e

File tree

5 files changed

+120
-170
lines changed

5 files changed

+120
-170
lines changed

doc/CHANGES.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Change log
3131
## v0.6.2-dev (upcoming changes)
3232

3333
- fix [#1132](https://github.com/gridstack/gridstack.js/issues/1132) oneColumnMode missing CSS to do layout
34+
- del `oneColumnModeClass` / `.grid-stack-one-column-mode` and associated code. If you depended on this, use class `.grid-stack-1` instead since it is 1 column layout anyway [1134](https://github.com/gridstack/gridstack.js/pull/1134)
3435

3536
## v0.6.2 (2020-02-03)
3637

@@ -43,7 +44,7 @@ Tracking item swap would be even better still. [#1127](https://github.com/gridst
4344

4445
- fix [#37](https://github.com/gridstack/gridstack.js/issues/37) oneColumnMode (<768px by default) now simply calls `setColumn(1)` and remembers prev columns (so we can restore). This gives
4546
us full resize/re-order of items capabilities rather than a locked CSS only layout (see prev rev changes). [#1120](https://github.com/gridstack/gridstack.js/pull/1120)
46-
- fixed responsive.html demo [#1121](https://github.com/gridstack/gridstack.js/pull/1121)
47+
- fix [responsive.html](https://gridstackjs.com/demo/responsive.html) demo [#1121](https://github.com/gridstack/gridstack.js/pull/1121)
4748

4849
## v0.6.0 (2019-12-24)
4950

@@ -92,11 +93,11 @@ thanks [@ermcgrat](https://github.com/ermcgrat) and others for pointing out code
9293

9394
## v0.5.2 (2019-11-13)
9495

95-
- undefined `x,y` position messes up grid ([#1017](https://github.com/gridstack/gridstack.js/issues/1017)).
96+
- fix undefined `x,y` position messes up grid ([#1017](https://github.com/gridstack/gridstack.js/issues/1017)).
9697
- changed code to 2 spaces.
9798
- fix minHeight during `onStartMoving()` ([#999](https://github.com/gridstack/gridstack.js/issues/999)).
98-
- TypeScript definition file now included - no need to include @types/gridstack, easier to update ([#1036](https://github.com/gridstack/gridstack.js/pull/1036)).
99-
- new `addWidget(el, options)` to pass object so you don't have to spell 10 params. ([#907](https://github.com/gridstack/gridstack.js/issues/907)).
99+
- add `gridstack.d.ts` TypeScript definition file now included - no need to include `@types/gridstack`, easier to update ([#1036](https://github.com/gridstack/gridstack.js/pull/1036)).
100+
- add `addWidget(el, options)` to pass object so you don't have to spell 10 params. ([#907](https://github.com/gridstack/gridstack.js/issues/907)).
100101

101102
## v0.5.1 (2019-11-07)
102103

doc/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ gridstack.js API
8888
- `itemClass` - widget class (default: `'grid-stack-item'`)
8989
- `maxRow` - maximum rows amount. Default is `0` which means no maximum rows
9090
- `minWidth` - minimal width. If window width is less than or equal to, grid will be shown in one-column mode (default: `768`)
91-
- `oneColumnModeClass` - class set on grid when in one column mode (default: 'grid-stack-one-column-mode')
9291
- `oneColumnModeDomSort` - set to `true` if you want oneColumnMode to use the DOM order and ignore x,y from normal multi column layouts during sorting. This enables you to have custom 1 column layout that differ from the rest. (default?: `false`)
9392
- `placeholderClass` - class for placeholder (default: `'grid-stack-placeholder'`)
9493
- `placeholderText` - placeholder default content (default: `''`)

0 commit comments

Comments
 (0)