publ-echo 0.0.92 → 0.0.93

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.
@@ -47,6 +47,8 @@ var GridItem = function (_a) {
47
47
  if (!targetNode || isDragging || isResizing) {
48
48
  return;
49
49
  }
50
+ var prevMinWidth = parseFloat(getComputedStyle(targetNode).minWidth);
51
+ console.log('prev min width', prevMinWidth);
50
52
  // MutationObserver 콜백 함수
51
53
  var callback = function (mutationsList) {
52
54
  for (var _i = 0, mutationsList_1 = mutationsList; _i < mutationsList_1.length; _i++) {
@@ -56,16 +58,13 @@ var GridItem = function (_a) {
56
58
  var height = isCharacterChanged ? mutation.target.parentNode.clientHeight : mutation.target.clientHeight;
57
59
  var width = targetNode.clientWidth;
58
60
  if (!isCharacterChanged && mutation.target instanceof Element) {
59
- var styles_1 = getComputedStyle(mutation.target);
60
- var minWidth_1 = parseFloat(styles_1.minWidth);
61
- if (minWidth_1 > width) {
61
+ var styles = getComputedStyle(mutation.target);
62
+ var minWidth = parseFloat(styles.minWidth);
63
+ console.log('currentMinWidth', minWidth);
64
+ if (minWidth > width || minWidth > prevMinWidth) {
62
65
  keepWidth = false;
63
66
  }
64
67
  }
65
- var styles = getComputedStyle(mutation.target);
66
- var minWidth = parseFloat(styles.minWidth);
67
- console.log('out loop - width', width);
68
- console.log('minwidth', styles.minWidth);
69
68
  var prevW = props.w;
70
69
  var prevH = props.h;
71
70
  var _a = calcWH(getPositionParams(), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo",
3
- "version": "0.0.92",
3
+ "version": "0.0.93",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",