publ-echo-test 0.0.256 → 0.0.258
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.
@@ -58,7 +58,7 @@ var Resizable = function (_a) {
|
|
58
58
|
var minWidth = useRef(0);
|
59
59
|
var minHeight = useRef(0);
|
60
60
|
useEffect(function () {
|
61
|
-
var _a;
|
61
|
+
var _a, _b, _c, _d;
|
62
62
|
if (!autoResize) {
|
63
63
|
return;
|
64
64
|
}
|
@@ -101,12 +101,13 @@ var Resizable = function (_a) {
|
|
101
101
|
// let oneCompositionMinHeight =
|
102
102
|
// minColHeight * compositionRows + 20; /* 20px padding */
|
103
103
|
var contentsWrapper = placeholder.querySelector(".cb-contentslist-wrapper");
|
104
|
-
|
104
|
+
var widthOrHeightChanged = width !== ((_b = startSize.current) === null || _b === void 0 ? void 0 : _b.width) ||
|
105
|
+
height !== ((_c = startSize.current) === null || _c === void 0 ? void 0 : _c.height);
|
106
|
+
if (contentsWrapper && widthOrHeightChanged) {
|
105
107
|
var wrapperH = contentsWrapper.clientHeight;
|
106
108
|
var tempCompositionH = oneComposition.clientHeight;
|
107
|
-
console.log("startSize.current", startSize.current);
|
108
|
-
console.log("startPosition.current", startPosition.current);
|
109
109
|
console.log("tempCompositionH", tempCompositionH);
|
110
|
+
console.log("parentH", (_d = oneComposition.parentElement) === null || _d === void 0 ? void 0 : _d.clientHeight);
|
110
111
|
var CompositionBGwrapperPaddingT = Number(oneComposition.getAttribute("data-wrapper-paddingT"));
|
111
112
|
var CompositionBGwrapperPaddingB = Number(oneComposition.getAttribute("data-wrapper-paddingB"));
|
112
113
|
if (tempCompositionH > wrapperH) {
|