@carbon/ibm-products 2.43.2-canary.113 → 2.43.2-canary.115
Sign up to get free protection for your applications and to get access to all the features.
@@ -44,7 +44,9 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
44
44
|
/* istanbul ignore next */
|
45
45
|
var handleVirtualGridResize = function handleVirtualGridResize() {
|
46
46
|
var gridRefElement = gridRef === null || gridRef === void 0 ? void 0 : gridRef.current;
|
47
|
-
if
|
47
|
+
// isHidden checks for an edge case where if the table is hidden by something like a Tab that the width can't be calculated to 0
|
48
|
+
var isHidden = (gridRefElement === null || gridRefElement === void 0 ? void 0 : gridRefElement.offsetParent) === null;
|
49
|
+
if (gridRefElement && !isHidden) {
|
48
50
|
var _gridRefElement$clien;
|
49
51
|
gridRefElement.style.width = gridRefElement === null || gridRefElement === void 0 || (_gridRefElement$clien = gridRefElement.clientWidth) === null || _gridRefElement$clien === void 0 ? void 0 : _gridRefElement$clien.toString();
|
50
52
|
}
|
@@ -52,7 +52,9 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
52
52
|
/* istanbul ignore next */
|
53
53
|
var handleVirtualGridResize = function handleVirtualGridResize() {
|
54
54
|
var gridRefElement = gridRef === null || gridRef === void 0 ? void 0 : gridRef.current;
|
55
|
-
if
|
55
|
+
// isHidden checks for an edge case where if the table is hidden by something like a Tab that the width can't be calculated to 0
|
56
|
+
var isHidden = (gridRefElement === null || gridRefElement === void 0 ? void 0 : gridRefElement.offsetParent) === null;
|
57
|
+
if (gridRefElement && !isHidden) {
|
56
58
|
var _gridRefElement$clien;
|
57
59
|
gridRefElement.style.width = gridRefElement === null || gridRefElement === void 0 || (_gridRefElement$clien = gridRefElement.clientWidth) === null || _gridRefElement$clien === void 0 ? void 0 : _gridRefElement$clien.toString();
|
58
60
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products",
|
3
3
|
"description": "Carbon for IBM Products",
|
4
|
-
"version": "2.43.2-canary.
|
4
|
+
"version": "2.43.2-canary.115+64ef0c3c8",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -120,5 +120,5 @@
|
|
120
120
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
121
121
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "64ef0c3c8e981c5193e94d25ed4b0413fc2f1f5a"
|
124
124
|
}
|