publ-echo-test 0.0.51 → 0.0.52
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.
@@ -119,17 +119,20 @@ var Resizable = function (_a) {
|
|
119
119
|
var _c = (_a = slack.current) !== null && _a !== void 0 ? _a : [0, 0], slackW = _c[0], slackH = _c[1];
|
120
120
|
width += slackW;
|
121
121
|
height += slackH;
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
122
|
+
if (autoResize) {
|
123
|
+
width = Math.max(minWidth.current, width);
|
124
|
+
height = Math.max(minHeight.current, height);
|
125
|
+
}
|
126
|
+
else {
|
127
|
+
if (minConstraints) {
|
128
|
+
width = Math.max(minConstraints[0], width);
|
129
|
+
height = Math.max(minConstraints[1], height);
|
130
|
+
}
|
127
131
|
}
|
128
132
|
if (maxConstraints) {
|
129
133
|
width = Math.min(maxConstraints[0], width);
|
130
134
|
height = Math.min(maxConstraints[1], height);
|
131
135
|
}
|
132
|
-
console.log(oldW, width);
|
133
136
|
slack.current = [slackW + (oldW - width), slackH + (oldH - height)];
|
134
137
|
// console.log([slackW, slackH]);
|
135
138
|
return [width, height];
|