publ-echo-test 0.0.266 → 0.0.268
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.
- package/dist/lib/Resizable/Resizable.js +23 -23
- package/package.json +1 -1
@@ -66,6 +66,7 @@ var Resizable = function (_a) {
|
|
66
66
|
extendedHeightRef.current = null;
|
67
67
|
minWidth.current = 0;
|
68
68
|
shouldShrinkRef.current = false;
|
69
|
+
minHeight.current = 0;
|
69
70
|
return;
|
70
71
|
}
|
71
72
|
if (!elementRef.current) {
|
@@ -112,6 +113,7 @@ var Resizable = function (_a) {
|
|
112
113
|
extendedHeightRef.current = null;
|
113
114
|
minWidth.current = 0;
|
114
115
|
shouldShrinkRef.current = false;
|
116
|
+
minHeight.current = 0;
|
115
117
|
return;
|
116
118
|
}
|
117
119
|
if (!elementRef.current) {
|
@@ -149,32 +151,30 @@ var Resizable = function (_a) {
|
|
149
151
|
var tempCompositionH = oneComposition.clientHeight;
|
150
152
|
var CompositionBGwrapperPaddingT = Number(oneComposition.getAttribute("data-wrapper-paddingT"));
|
151
153
|
var CompositionBGwrapperPaddingB = Number(oneComposition.getAttribute("data-wrapper-paddingB"));
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
minWidth.current = listMinWidth;
|
154
|
+
var oneCompositionMinHeight = tempCompositionH +
|
155
|
+
CompositionBGwrapperPaddingT +
|
156
|
+
CompositionBGwrapperPaddingB;
|
157
|
+
var styles = getComputedStyle(target);
|
158
|
+
var paddingL = parseFloat(styles.paddingLeft);
|
159
|
+
var paddingR = parseFloat(styles.paddingRight);
|
160
|
+
var paddingT = parseFloat(styles.paddingTop);
|
161
|
+
var paddingB = parseFloat(styles.paddingBottom);
|
162
|
+
var paddingLR = paddingL + paddingR;
|
163
|
+
var paddingTB = paddingT + paddingB;
|
164
|
+
var listMinWidth = oneCompositionMinWidth * numberOfColumns +
|
165
|
+
(numberOfColumns - 1) * columnGap +
|
166
|
+
paddingLR;
|
167
|
+
var numberOfRows = Math.ceil(numberOfItems / numberOfColumns);
|
168
|
+
var listMinHeight = oneCompositionMinHeight * numberOfRows +
|
169
|
+
(numberOfRows - 1) * rowGap +
|
170
|
+
paddingTB +
|
171
|
+
insetTop +
|
172
|
+
insetBottom;
|
173
|
+
if (listMinHeight > wrapperH) {
|
173
174
|
minHeight.current = listMinHeight;
|
174
|
-
return;
|
175
175
|
}
|
176
|
+
minWidth.current = listMinWidth;
|
176
177
|
}
|
177
|
-
return;
|
178
178
|
}
|
179
179
|
}, 0);
|
180
180
|
}, [isResizing, autoResize, children, elementRef]);
|