publ-echo 0.0.80 → 0.0.82
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.
|
@@ -91,6 +91,9 @@ var GridItem = function (_a) {
|
|
|
91
91
|
}
|
|
92
92
|
;
|
|
93
93
|
var _d = calcWH(getPositionParams(), { width: newClientWidth, height: newClientHeight }, x, y, 'se', props.w, props.h), w = _d.w, h = _d.h;
|
|
94
|
+
if (props.w === w && props.h === h) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
94
97
|
props.onContentSizeChange(props.i, { x: x, y: y, w: w, h: h });
|
|
95
98
|
});
|
|
96
99
|
observer.observe(target, { box: 'border-box' });
|
|
@@ -268,6 +268,12 @@ var ReactGridLayout = function (_a) {
|
|
|
268
268
|
};
|
|
269
269
|
// NOTE: 임시
|
|
270
270
|
var onContentSizeChange = function (i, pos) {
|
|
271
|
+
var targetLayoutItem = getLayoutItem(layout, i);
|
|
272
|
+
if ((targetLayoutItem === null || targetLayoutItem === void 0 ? void 0 : targetLayoutItem.h) === pos.h) {
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
console.log('og-h: ', targetLayoutItem === null || targetLayoutItem === void 0 ? void 0 : targetLayoutItem.h);
|
|
276
|
+
console.log('new-h: ', pos.h);
|
|
271
277
|
var _a = withLayoutItem(layout, i, function (l) {
|
|
272
278
|
l.w = pos.w;
|
|
273
279
|
l.h = pos.h;
|