Add option to draw extra cells for paddingBottom/paddingRight
Right now paddingBottom and paddingRight doesn't draw anything in the "padded" region
https://user-images.githubusercontent.com/94077014/152489535-43094683-ced4-4ce5-b676-4d7d9249172e.mp4
but in my case I'd like the empty cell lines to still be drawn in these areas.
https://user-images.githubusercontent.com/94077014/152489554-a5bee1ec-d03a-4d85-aebb-e6a67c5fcf8b.mp4
Terminology-wise, I think the first case would make more sense as marginBottom and marginRight, and paddingBottom and paddingRight would include the drawn lines. Alternatively maybe there could be some other boolean (or booleans) to control if/which of these areas are drawn in.
https://github.com/glideapps/glide-data-grid/blob/0916a62916d0e5a1ee3e5ae091d0567b1e1a34d8/packages/core/src/scrolling-data-grid/infinite-scroller.tsx#L116-L121
- width: el.clientWidth - paddingRight,
- height: el.clientHeight - paddingBottom,
+ width: el.clientWidth,
+ height: el.clientHeight,
I too, like the idea!! Do you plan on or already have a PR open for the suggested addition?
I can make one, but it'd be good to settle on terminology/approach first
I went ahead and put up a proposal for this in #160
https://user-images.githubusercontent.com/94077014/152608583-6ab100f6-9a4a-4784-b3ba-800316b5f711.mp4
Thanks for the PR @pzcfg!
We figured that the behavior you want could be achieved without breaking changes.
Here's the PR with the relevant change. https://github.com/glideapps/glide-data-grid/pull/164