publ-echo-test 0.0.13 → 0.0.14
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.
@@ -55,6 +55,7 @@ var Resizable = function (_a) {
|
|
55
55
|
var extendedHeightRef = useRef(null);
|
56
56
|
var minWidth = useRef(0);
|
57
57
|
useEffect(function () {
|
58
|
+
var _a;
|
58
59
|
if (!isResizing) {
|
59
60
|
extendedHeightRef.current = null;
|
60
61
|
minWidth.current = 0;
|
@@ -67,7 +68,7 @@ var Resizable = function (_a) {
|
|
67
68
|
if (!placeholder) {
|
68
69
|
return;
|
69
70
|
}
|
70
|
-
var target = placeholder.children[0].children[0];
|
71
|
+
var target = (_a = placeholder.children[0].children[0].children[0]) !== null && _a !== void 0 ? _a : placeholder.children[0].children[0];
|
71
72
|
if (target.clientHeight > elementRef.current.clientHeight) {
|
72
73
|
extendedHeightRef.current = target.clientHeight;
|
73
74
|
}
|
@@ -75,6 +76,7 @@ var Resizable = function (_a) {
|
|
75
76
|
extendedHeightRef.current = null;
|
76
77
|
}
|
77
78
|
var minWidthStyle = target.computedStyleMap().get('min-width');
|
79
|
+
console.log('minwidth Style: ', minWidthStyle);
|
78
80
|
if (typeof minWidthStyle.value === 'number') {
|
79
81
|
minWidth.current = minWidthStyle.value;
|
80
82
|
}
|