Hi all,
I want horizontal scrolling for grids because my users can dynamically add columns and work with data before exporting to Excel for further analysis. This also gets me round the problem of wide grids on a small screen.
I DO NOT want vertical scrolling as my users scroll with the browser and grid scrolling has caused no end of confusion when I have installed it.
I therefore set up my grid as follows:
The grid header is now rendered with 16px padding which throws out the alignment of all columns with the header. It looks like the padding has been added by flex and I am unable to overwrite. I can manually modify right padding to 0px in the console and all is great.
I DO NOT want to set a height for my grid and force a scroll bar so the content lines up by having a scroll bar.
I have tried setting a maxHeight in the hope that if the max height was not met the grid would remove the padding because it was not applying the scroll bar. No luck. Setting a max height implements padding and throws column alignment out when it does not apply a scroll bar (go figure)...
I have tried various bits of CSS to remove the padding to no avail.
This would be a global setting as this is how I want all of my grids to behave.
The following global settings are defined in styles.css (I implement a grid wrapper and spinner across all grids).
How do I remove the padding to align my columns when I do not want vertical scrolling?
Cheers,
Bob