@cdmx/wappler_ag_grid 1.9.18 → 1.9.19
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/dmx-ag-grid.js +2 -8
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -1950,24 +1950,17 @@ dmx.Component('ag-grid', {
|
|
|
1950
1950
|
const bodyHorizontalScrollElement = gridElement.querySelector('.ag-body-horizontal-scroll');
|
|
1951
1951
|
const rootWrapperWidth = agRootWrapper.clientWidth;
|
|
1952
1952
|
bodyHorizontalScrollElement.style.width = rootWrapperWidth + 'px';
|
|
1953
|
-
|
|
1954
|
-
// Get the height of the horizontal scrollbar
|
|
1955
|
-
const scrollbarHeight = bodyHorizontalScrollElement.offsetHeight || 17;
|
|
1956
|
-
|
|
1953
|
+
// Add the styles for the hovering horizontal bottom bar
|
|
1957
1954
|
styleElement.innerHTML = `
|
|
1958
1955
|
.ag-body-horizontal-scroll {
|
|
1959
1956
|
position: fixed;
|
|
1960
1957
|
bottom: 0;
|
|
1961
|
-
z-index: 1000;
|
|
1962
1958
|
}
|
|
1963
1959
|
.ag-sticky-bottom {
|
|
1964
1960
|
display: none;
|
|
1965
1961
|
}
|
|
1966
1962
|
.ag-paging-panel {
|
|
1967
1963
|
border-top: none;
|
|
1968
|
-
margin-bottom: ${scrollbarHeight}px !important;
|
|
1969
|
-
position: relative;
|
|
1970
|
-
z-index: 999;
|
|
1971
1964
|
}
|
|
1972
1965
|
`;
|
|
1973
1966
|
if (existingStyle) {
|
|
@@ -1976,6 +1969,7 @@ dmx.Component('ag-grid', {
|
|
|
1976
1969
|
gridElement.appendChild(styleElement);
|
|
1977
1970
|
}
|
|
1978
1971
|
} else if (existingStyle) {
|
|
1972
|
+
// Remove the style element if it exists
|
|
1979
1973
|
existingStyle.parentNode.removeChild(existingStyle);
|
|
1980
1974
|
}
|
|
1981
1975
|
}
|