publ-echo-test 0.0.256 → 0.0.257

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;
62
62
  if (!autoResize) {
63
63
  return;
64
64
  }
@@ -101,11 +101,11 @@ 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
- if (contentsWrapper) {
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
110
  var CompositionBGwrapperPaddingT = Number(oneComposition.getAttribute("data-wrapper-paddingT"));
111
111
  var CompositionBGwrapperPaddingB = Number(oneComposition.getAttribute("data-wrapper-paddingB"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.256",
3
+ "version": "0.0.257",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",