Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbde344

Browse files
authored
Merge pull request gridstack#2572 from adumesny/master
more log tweaks
2 parents 1bb15bc + 5ad07cb commit bbde344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gridstack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ export class GridStack {
13811381
} else {
13821382
// NOTE: clientHeight & getBoundingClientRect() is undefined for text and other leaf nodes. use <div> container!
13831383
const child = item.firstElementChild;
1384-
if (!child) { console.error(`Error: GridStack.resizeToContent() '${GridStack.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`); return; }
1384+
if (!child) { console.error(`Error: GridStack.resizeToContent() widget id:${n.id} '${GridStack.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`); return; }
13851385
wantedH = child.getBoundingClientRect().height || itemH;
13861386
}
13871387
if (itemH === wantedH) return;

0 commit comments

Comments
 (0)