publ-echo-test 0.0.35 → 0.0.36
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.
@@ -357,7 +357,7 @@ var GridItem = function (_a) {
|
|
357
357
|
return;
|
358
358
|
var prevW = props.w, prevH = props.h;
|
359
359
|
// Get new XY
|
360
|
-
var _b = calcWH(getPositionParams(), size, x, y, handle, prevW, prevH,
|
360
|
+
var _b = calcWH(getPositionParams(), size, x, y, handle, prevW, prevH, true), w = _b.w, h = _b.h;
|
361
361
|
var tempMinH = minH;
|
362
362
|
if (minWidth) {
|
363
363
|
var _c = calcWH(getPositionParams(), __assign(__assign({}, size), { width: minWidth, height: minHeight !== null && minHeight !== void 0 ? minHeight : 0 }), x, y, handle, prevW, prevH, true), minW_1 = _c.w, newMinH = _c.h;
|
@@ -56,7 +56,7 @@ var Resizable = function (_a) {
|
|
56
56
|
var shouldShrinkRef = useRef(false);
|
57
57
|
var minWidth = useRef(0);
|
58
58
|
useEffect(function () {
|
59
|
-
var _a;
|
59
|
+
var _a, _b;
|
60
60
|
if (!autoResize) {
|
61
61
|
return;
|
62
62
|
}
|
@@ -81,7 +81,9 @@ var Resizable = function (_a) {
|
|
81
81
|
else {
|
82
82
|
extendedHeightRef.current = null;
|
83
83
|
}
|
84
|
-
|
84
|
+
console.log('startHeight', (_b = startSize.current) === null || _b === void 0 ? void 0 : _b.height);
|
85
|
+
console.log('height', height);
|
86
|
+
if (shouldShrinkRef.current && (target.clientHeight < elementRef.current.clientHeight)) {
|
85
87
|
extendedHeightRef.current = target.clientHeight;
|
86
88
|
}
|
87
89
|
var minWidthStyle = target.computedStyleMap().get('min-width');
|