publ-echo-test 0.0.237 → 0.0.240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -203,7 +203,7 @@ var GridItem = function (_a) {
|
|
203
203
|
};
|
204
204
|
}, [autoResize, isSelected, isDragging, isResizing, props.w, props.h, x, y]);
|
205
205
|
useEffect(function () {
|
206
|
-
var _a, _b, _c, _d, _e;
|
206
|
+
var _a, _b, _c, _d, _e, _f;
|
207
207
|
if (!isSelected || !autoResize) {
|
208
208
|
return;
|
209
209
|
}
|
@@ -220,10 +220,12 @@ var GridItem = function (_a) {
|
|
220
220
|
var minHeight = Number((_e = (_d = targetNode.dataset) === null || _d === void 0 ? void 0 : _d.minHeight) !== null && _e !== void 0 ? _e : 0);
|
221
221
|
var insetTop = Number(targetNode.dataset['data-inset-top']);
|
222
222
|
var insetBottom = Number(targetNode.dataset['data-inset-bottom']);
|
223
|
-
|
223
|
+
console.log('ref', (_f = elementRef.current) === null || _f === void 0 ? void 0 : _f.children[0].children[0]);
|
224
|
+
console.log(targetNode);
|
225
|
+
var _g = calcWH(getPositionParams(), {
|
224
226
|
width: minWidth,
|
225
227
|
height: minHeight + insetTop + insetBottom,
|
226
|
-
}, x, y, 'e', props.w, props.h, false), w =
|
228
|
+
}, x, y, 'e', props.w, props.h, false), w = _g.w, h = _g.h;
|
227
229
|
var prevW = props.w;
|
228
230
|
var prevH = props.h;
|
229
231
|
if (prevW > w) {
|
@@ -239,7 +241,7 @@ var GridItem = function (_a) {
|
|
239
241
|
console.log('call onfitToContent');
|
240
242
|
props.onFitToContent &&
|
241
243
|
props.onFitToContent(i, w, h, x, y, { hasPaddingChanged: false });
|
242
|
-
}, [
|
244
|
+
}, []);
|
243
245
|
// const moveDroppingItem = (prevProps: GridItemProps) => {
|
244
246
|
// const { droppingPosition } = props;
|
245
247
|
// if (!droppingPosition) return;
|