@ringcentral/juno 2.20.1 → 2.20.3
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.
|
@@ -39,6 +39,7 @@ var _MoreMenuTabs = react_1.forwardRef(function (props, ref) {
|
|
|
39
39
|
var hasResizeRef = react_1.useRef(true);
|
|
40
40
|
var forceUpdate = foundation_1.useForceUpdate();
|
|
41
41
|
var sizeChange = function (size) {
|
|
42
|
+
hasResizeRef.current = true;
|
|
42
43
|
if (tabsSizeRef.current.height !== size.height ||
|
|
43
44
|
tabsSizeRef.current.width !== size.width) {
|
|
44
45
|
tabsSizeRef.current = size;
|
|
@@ -50,7 +51,6 @@ var _MoreMenuTabs = react_1.forwardRef(function (props, ref) {
|
|
|
50
51
|
var _b = tslib_1.__read(_a, 1), entry = _b[0];
|
|
51
52
|
var _c = entry.contentRect, width = _c.width, height = _c.height;
|
|
52
53
|
var obj = { width: width, height: height };
|
|
53
|
-
hasResizeRef.current = true;
|
|
54
54
|
throttleTabsSizeChange(obj);
|
|
55
55
|
}, { mode: 'none' });
|
|
56
56
|
var tabsSize = tabsSizeRef.current;
|
|
@@ -37,6 +37,7 @@ var _MoreMenuTabs = forwardRef(function (props, ref) {
|
|
|
37
37
|
var hasResizeRef = useRef(true);
|
|
38
38
|
var forceUpdate = useForceUpdate();
|
|
39
39
|
var sizeChange = function (size) {
|
|
40
|
+
hasResizeRef.current = true;
|
|
40
41
|
if (tabsSizeRef.current.height !== size.height ||
|
|
41
42
|
tabsSizeRef.current.width !== size.width) {
|
|
42
43
|
tabsSizeRef.current = size;
|
|
@@ -48,7 +49,6 @@ var _MoreMenuTabs = forwardRef(function (props, ref) {
|
|
|
48
49
|
var _b = __read(_a, 1), entry = _b[0];
|
|
49
50
|
var _c = entry.contentRect, width = _c.width, height = _c.height;
|
|
50
51
|
var obj = { width: width, height: height };
|
|
51
|
-
hasResizeRef.current = true;
|
|
52
52
|
throttleTabsSizeChange(obj);
|
|
53
53
|
}, { mode: 'none' });
|
|
54
54
|
var tabsSize = tabsSizeRef.current;
|