publ-echo-test 0.0.25 → 0.0.27

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.
@@ -48,10 +48,11 @@ var GridItem = function (_a) {
48
48
  return;
49
49
  }
50
50
  // MutationObserver 콜백 함수
51
- var callback = function (mutationsList, observer) {
51
+ var callback = function (mutationsList) {
52
52
  for (var _i = 0, mutationsList_1 = mutationsList; _i < mutationsList_1.length; _i++) {
53
53
  var mutation = mutationsList_1[_i];
54
54
  var isCharacterChanged = mutation.type === 'characterData';
55
+ console.log(mutation);
55
56
  var height = isCharacterChanged ? mutation.target.parentNode.clientHeight : mutation.target.clientHeight;
56
57
  var newWidth = targetNode.clientWidth;
57
58
  var prevW = props.w;
@@ -61,10 +62,11 @@ var GridItem = function (_a) {
61
62
  height: height,
62
63
  }, x, y, 'e', props.w, props.h, true), w_1 = _a.w, h_1 = _a.h;
63
64
  if (isCharacterChanged) {
64
- console.log('w', w_1);
65
- console.log('prev w', props.w);
66
65
  w_1 = prevW;
67
66
  }
67
+ if (prevH > h_1) {
68
+ h_1 = prevH;
69
+ }
68
70
  var _b = getResizableXYPosition('e', w_1, h_1, prevW, prevH), newX = _b.newX, newY = _b.newY;
69
71
  props.onFitToContent && props.onFitToContent(i, w_1, h_1, newX, newY);
70
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",