publ-echo-test 0.0.35 → 0.0.37
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.
@@ -73,6 +73,7 @@ var GridItem = function (_a) {
|
|
73
73
|
var paddingB = parseFloat(styles.paddingBottom);
|
74
74
|
if (prevPaddingL !== paddingL || prevPaddingR !== paddingR || prevPaddingT !== paddingT || prevPaddingB !== paddingB) {
|
75
75
|
hasPaddingChanged = true;
|
76
|
+
keepWidth = false;
|
76
77
|
}
|
77
78
|
}
|
78
79
|
var prevW = props.w;
|
@@ -87,6 +88,7 @@ var GridItem = function (_a) {
|
|
87
88
|
if (prevH > h_1) {
|
88
89
|
h_1 = prevH;
|
89
90
|
}
|
91
|
+
console.log('keep width?', keepWidth);
|
90
92
|
var _b = getResizableXYPosition('e', w_1, h_1, prevW, prevH), newX = _b.newX, newY = _b.newY;
|
91
93
|
if (prevH === h_1 && prevW === w_1 && newX === x && newY === y) {
|
92
94
|
return;
|
@@ -357,7 +359,7 @@ var GridItem = function (_a) {
|
|
357
359
|
return;
|
358
360
|
var prevW = props.w, prevH = props.h;
|
359
361
|
// Get new XY
|
360
|
-
var _b = calcWH(getPositionParams(), size, x, y, handle, prevW, prevH,
|
362
|
+
var _b = calcWH(getPositionParams(), size, x, y, handle, prevW, prevH, true), w = _b.w, h = _b.h;
|
361
363
|
var tempMinH = minH;
|
362
364
|
if (minWidth) {
|
363
365
|
var _c = calcWH(getPositionParams(), __assign(__assign({}, size), { width: minWidth, height: minHeight !== null && minHeight !== void 0 ? minHeight : 0 }), x, y, handle, prevW, prevH, true), minW_1 = _c.w, newMinH = _c.h;
|
@@ -81,7 +81,7 @@ var Resizable = function (_a) {
|
|
81
81
|
else {
|
82
82
|
extendedHeightRef.current = null;
|
83
83
|
}
|
84
|
-
if (shouldShrinkRef.current && target.clientHeight < elementRef.current.clientHeight) {
|
84
|
+
if (shouldShrinkRef.current && (target.clientHeight < elementRef.current.clientHeight)) {
|
85
85
|
extendedHeightRef.current = target.clientHeight;
|
86
86
|
}
|
87
87
|
var minWidthStyle = target.computedStyleMap().get('min-width');
|