publ-echo-test 0.0.263 → 0.0.265

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.
@@ -118,7 +118,7 @@ var Resizable = function (_a) {
118
118
  return;
119
119
  }
120
120
  setTimeout(function () {
121
- var _a, _b;
121
+ var _a;
122
122
  var placeholder = document.querySelector(".placeholder");
123
123
  if (!placeholder) {
124
124
  return;
@@ -147,10 +147,12 @@ var Resizable = function (_a) {
147
147
  if (contentsWrapper) {
148
148
  var wrapperH = contentsWrapper.clientHeight;
149
149
  var tempCompositionH = oneComposition.clientHeight;
150
- console.log("tempCompositionH", tempCompositionH);
151
- console.log("parentH", (_b = oneComposition.parentElement) === null || _b === void 0 ? void 0 : _b.clientHeight);
152
150
  var CompositionBGwrapperPaddingT = Number(oneComposition.getAttribute("data-wrapper-paddingT"));
153
151
  var CompositionBGwrapperPaddingB = Number(oneComposition.getAttribute("data-wrapper-paddingB"));
152
+ if (wrapperH > tempCompositionH) {
153
+ minHeight.current = 0;
154
+ console.log("wrapper H > tempCompositionH");
155
+ }
154
156
  if (tempCompositionH > wrapperH) {
155
157
  var oneCompositionMinHeight = tempCompositionH +
156
158
  CompositionBGwrapperPaddingT +
@@ -171,10 +173,8 @@ var Resizable = function (_a) {
171
173
  paddingTB +
172
174
  insetTop +
173
175
  insetBottom;
174
- console.log("oneCompositionMinHeight", oneCompositionMinHeight);
175
- console.log("listMinHeight", listMinHeight);
176
- // minWidth.current = listMinWidth;
177
- // minHeight.current = listMinHeight;
176
+ minWidth.current = listMinWidth;
177
+ minHeight.current = listMinHeight;
178
178
  return;
179
179
  }
180
180
  }
@@ -225,6 +225,7 @@ var Resizable = function (_a) {
225
225
  height = Math.min(maxConstraints[1], height);
226
226
  }
227
227
  slack.current = [slackW + (oldW - width), slackH + (oldH - height)];
228
+ console.log("minH", minHeight.current);
228
229
  return [width, height];
229
230
  };
230
231
  var checkTopLeft = function (deltaX, deltaY, top, left, width, height, handleAxis) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.263",
3
+ "version": "0.0.265",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",