@gpa-gemstone/react-table 1.2.80 → 1.2.82
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/lib/Table/Table.js +1 -2
- package/package.json +2 -2
package/lib/Table/Table.js
CHANGED
|
@@ -76,7 +76,6 @@ const IsColumnAdjustable = (props) => {
|
|
|
76
76
|
return propValue;
|
|
77
77
|
return false;
|
|
78
78
|
};
|
|
79
|
-
const scrollBarWidth = (0, helper_functions_1.GetScrollbarWidth)();
|
|
80
79
|
const lastColumnWidth = 17;
|
|
81
80
|
function Table(props) {
|
|
82
81
|
const bodyRef = React.useRef(null);
|
|
@@ -233,7 +232,7 @@ function Table(props) {
|
|
|
233
232
|
newScroll = (dims === null || dims === void 0 ? void 0 : dims.height) < bodyRef.current.scrollHeight;
|
|
234
233
|
setScrolled(newScroll);
|
|
235
234
|
// Pick whichever is larger so we dont double subtract
|
|
236
|
-
const scrollbar = newScroll ?
|
|
235
|
+
const scrollbar = newScroll ? (0, helper_functions_1.GetScrollbarWidth)() : 0;
|
|
237
236
|
const last = props.LastColumn !== undefined ? lastColumnWidth : 0;
|
|
238
237
|
const spacer = Math.max(scrollbar, last);
|
|
239
238
|
setCurrentTableWidth(((_d = dims.width) !== null && _d !== void 0 ? _d : 17) - spacer);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpa-gemstone/react-table",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.82",
|
|
4
4
|
"description": "Table for GPA web applications",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@gpa-gemstone/gpa-symbols": "0.0.53",
|
|
47
47
|
"@gpa-gemstone/helper-functions": "0.0.45",
|
|
48
|
-
"@gpa-gemstone/react-interactive": "1.0.
|
|
48
|
+
"@gpa-gemstone/react-interactive": "1.0.159",
|
|
49
49
|
"@types/lodash": "^4.14.171",
|
|
50
50
|
"@types/react": "^17.0.14",
|
|
51
51
|
"lodash": "^4.17.21",
|