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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -446,7 +446,7 @@ Possible breaking change if you use nested grid JSON format, or original Angular
446
446
447
447
## Migrating to v9
448
448
449
-
New addition - see release notes about `fitToContent` feature.
449
+
New addition - see release notes about `sizeToContent` feature.
450
450
Possible break:
451
451
* `GridStack.onParentResize()` is now called `onResize()` as grid now directly track size change, no longer involving parent per say to tell us anything. Note sure why it was public.
Copy file name to clipboardExpand all lines: doc/CHANGES.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +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
+
-[9.0.2-dev (TBD)](#902-dev-tbd)
8
9
-[9.0.2 (2023-08-29)](#902-2023-08-29)
9
10
-[9.0.1 (2023-08-27)](#901-2023-08-27)
10
11
-[9.0.0 (2023-08-23)](#900-2023-08-23)
@@ -95,16 +96,19 @@ Change log
95
96
96
97
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
97
98
99
+
## 9.0.2-dev (TBD)
100
+
* renamed fitToContent to sizeToContent (API BREAK)
101
+
98
102
## 9.0.2 (2023-08-29)
99
103
* fix 'resizecontent' event fix not called.
100
-
* partial fix [#2427](https://github.com/gridstack/gridstack.js/issues/2427)fitToContent when calling cellHeight()/addWidget()/MakeWidget()
104
+
* partial fix [#2427](https://github.com/gridstack/gridstack.js/issues/2427)sizeToContent when calling cellHeight()/addWidget()/MakeWidget()
101
105
102
106
## 9.0.1 (2023-08-27)
103
107
* fix [#2413](https://github.com/gridstack/gridstack.js/issues/2413) support touchscreen+mouse devices. Thank you [@Ruslan207](https://github.com/Ruslan207)
104
-
* tweak to `fitToContent` from [#2412](https://github.com/gridstack/gridstack.js/pull/2412#issuecomment-1690219018). Thank you [@JonSohn](https://github.com/JonSohn)
108
+
* tweak to `sizeToContent` from [#2412](https://github.com/gridstack/gridstack.js/pull/2412#issuecomment-1690219018). Thank you [@JonSohn](https://github.com/JonSohn)
105
109
106
110
## 9.0.0 (2023-08-23)
107
-
- feat [#404](https://github.com/gridstack/gridstack.js/issues/404) added `GridStackOptions.fitToContent` and `GridStackWidget.fitToContent` to make gridItems size themselves to their content (no scroll bar), calling `GridStack.resizeToContent(el)` whenever the grid or item is resized.
111
+
- feat [#404](https://github.com/gridstack/gridstack.js/issues/404) added `GridStackOptions.sizeToContent` and `GridStackWidget.sizeToContent` to make gridItems size themselves to their content (no scroll bar), calling `GridStack.resizeToContent(el)` whenever the grid or item is resized.
108
112
- also added new `'resizecontent'` event, and `resizeToContentCB` and `resizeToContentParent` vars.
109
113
- fix [#2406](https://github.com/gridstack/gridstack.js/issues/2406) inf loop when autoPosition after loading into 1 column, then 2.
-`handleClass` - draggable handle class (e.g. `'grid-stack-item-content'`). If set `handle` is ignored (default: `null`)
@@ -159,7 +159,7 @@ You need to add `noResize` and `noMove` attributes to completely lock the widget
159
159
-`noMove` - disable element moving
160
160
-`id`- (number | string) good for quick identification (for example in change event)
161
161
-`content` - (string) html content to be added when calling `grid.load()/addWidget()` as content inside the item
162
-
-`fitToContent` - make gridItem size itself to the content, calling `GridStack.resizeToContent(el)` whenever the grid or item is resized.
162
+
-`sizeToContent` - make gridItem size itself to the content, calling `GridStack.resizeToContent(el)` whenever the grid or item is resized.
163
163
-`subGrid`?: GridStackOptions - optional nested grid options and list of children
164
164
-`subGridDynamic`?: boolean - enable/disable the creation of sub-grids on the fly by dragging items completely over others (nest) vs partially (push). Forces `DDDragOpt.pause=true` to accomplish that.
0 commit comments