publ-echo-test 0.0.23 → 0.0.25
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.
@@ -53,13 +53,18 @@ var GridItem = function (_a) {
|
|
53
53
|
var mutation = mutationsList_1[_i];
|
54
54
|
var isCharacterChanged = mutation.type === 'characterData';
|
55
55
|
var height = isCharacterChanged ? mutation.target.parentNode.clientHeight : mutation.target.clientHeight;
|
56
|
-
var
|
56
|
+
var newWidth = targetNode.clientWidth;
|
57
57
|
var prevW = props.w;
|
58
58
|
var prevH = props.h;
|
59
59
|
var _a = calcWH(getPositionParams(), {
|
60
|
-
width:
|
60
|
+
width: newWidth,
|
61
61
|
height: height,
|
62
62
|
}, x, y, 'e', props.w, props.h, true), w_1 = _a.w, h_1 = _a.h;
|
63
|
+
if (isCharacterChanged) {
|
64
|
+
console.log('w', w_1);
|
65
|
+
console.log('prev w', props.w);
|
66
|
+
w_1 = prevW;
|
67
|
+
}
|
63
68
|
var _b = getResizableXYPosition('e', w_1, h_1, prevW, prevH), newX = _b.newX, newY = _b.newY;
|
64
69
|
props.onFitToContent && props.onFitToContent(i, w_1, h_1, newX, newY);
|
65
70
|
}
|