You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* switch column to CSS var
* removed all custom classes and `gridstack-extra.css`
* This resolve a long standing issue where people didn't include the right/extra css for non 12 column layouts.
@@ -219,7 +222,9 @@ Note: class `.grid-stack-N` will automatically be added and we include `gridstac
219
222
220
223
See example: [2 grids demo](http://gridstack.github.io/gridstack.js/demo/two.html) with 6 columns
221
224
222
-
## Custom columns CSS
225
+
## Custom columns CSS (OLD, not needed with v12+)
226
+
227
+
NOTE: step is OLD and not needed with v12+ which uses CSS variables instead of classes
223
228
224
229
If you need > 12 columns or want to generate the CSS manually you will need to generate CSS rules for `.grid-stack-item[gs-w="X"]` and `.grid-stack-item[gs-x="X"]`.
4. if no `GridStackWidget` is defined, the helper will now be inserted as is, and NOT original sidepanel item.
492
497
5. support DOM gs- attr as well as gridstacknode JSON (see two.html) alternatives.
493
498
499
+
## Migrating to v12
500
+
501
+
* column and cell height code has been re-writen to use browser CSS variables, and we no longer need a tons of custom CSS classes!
502
+
this fixes a long standing issue where people forget to include the right CSS for non 12 columns layouts, and a big speedup in many cases (many columns, or small cellHeight values).
503
+
504
+
**Breaking change:**
505
+
* `gridstack-extra.min.css` no longer exist, nor is custom column CSS needed. API/options hasn't changed.
506
+
494
507
# jQuery Application
495
508
496
509
This is **old and no longer apply to v6+**. You'll need to use v5.1.1 and before
Copy file name to clipboardExpand all lines: doc/CHANGES.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Change log
5
5
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
6
6
**Table of Contents***generated with [DocToc](http://doctoc.herokuapp.com/)*
7
7
8
-
-[11.5.0-dev (TBD)](#1150-dev-tbd)
8
+
-[12-dev (TBD)](#12-dev-tbd)
9
9
-[11.5.1 (2025-03-23)](#1151-2025-03-23)
10
10
-[11.5.0 (2025-03-16)](#1150-2025-03-16)
11
11
-[11.4.0 (2025-02-27)](#1140-2025-02-27)
@@ -123,8 +123,9 @@ Change log
123
123
-[v0.1.0 (2014-11-18)](#v010-2014-11-18)
124
124
125
125
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
126
-
## 11.5.0-dev (TBD)
126
+
## 12-dev (TBD)
127
127
* feat: [#2854](https://github.com/gridstack/gridstack.js/pull/2854) Removed dynamic stylesheet and migrated to CSS vars. Thank you [lmartorella](https://github.com/lmartorella)
128
+
* feat: [#3013](https://github.com/gridstack/gridstack.js/pull/3013) columns no longer require custom classes nor `gridstack-extra.css` as we now use CSS vars.
128
129
129
130
## 11.5.1 (2025-03-23)
130
131
* revert: [#2981](https://github.com/gridstack/gridstack.js/issues/2981) Locked was incorrectly changed. fixed doc instead
0 commit comments