publ-echo 0.0.91 → 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++) {
@@ -58,7 +60,8 @@ var GridItem = function (_a) {
58
60
  if (!isCharacterChanged && mutation.target instanceof Element) {
59
61
  var styles = getComputedStyle(mutation.target);
60
62
  var minWidth = parseFloat(styles.minWidth);
61
- if (minWidth > width) {
63
+ console.log('currentMinWidth', minWidth);
64
+ if (minWidth > width || minWidth > prevMinWidth) {
62
65
  keepWidth = false;
63
66
  }
64
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo",
3
- "version": "0.0.91",
3
+ "version": "0.0.93",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",