publ-echo-test 0.0.238 → 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,11 +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
|
-
console.log(
|
224
|
-
|
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(), {
|
225
226
|
width: minWidth,
|
226
227
|
height: minHeight + insetTop + insetBottom,
|
227
|
-
}, x, y, 'e', props.w, props.h, false), w =
|
228
|
+
}, x, y, 'e', props.w, props.h, false), w = _g.w, h = _g.h;
|
228
229
|
var prevW = props.w;
|
229
230
|
var prevH = props.h;
|
230
231
|
if (prevW > w) {
|