MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / resizeToContentCBCheck

Method resizeToContentCBCheck

src/gridstack.ts:1709–1712  ·  view source on GitHub ↗

call the user resize (so they can do extra work) else our build in version

(el: GridItemHTMLElement)

Source from the content-addressed store, hash-verified

1707
1708 /** call the user resize (so they can do extra work) else our build in version */
1709 private resizeToContentCBCheck(el: GridItemHTMLElement) {
1710 if (GridStack.resizeToContentCB) GridStack.resizeToContentCB(el);
1711 else this.resizeToContent(el);
1712 }
1713
1714 /**
1715 * Rotate widgets by swapping their width and height. This is typically called when the user presses 'r' during dragging.

Callers 2

resizeToContentCheckMethod · 0.95

Calls 1

resizeToContentMethod · 0.95

Tested by

no test coverage detected