Replies: 1 comment 10 replies
-
Right now, I think the approach you took is the only way: to add a bit of padding to the right side of each list element. The undesirable attribute behavior can probably be fixed with some clever attribute map changes, but that isn't how I'd like this to work. I'd like to think about this some more, but I'm leaning toward augmenting the library's scroll bar configuration API with a spacing setting to make this a first-class feature. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am rendering a brick list and wanted to add a scrollbar. That worked fine, but the scrollbar was immediately next to the list items with no intervening space, which I thought looked bad. But since the
viewport
is actually created inside therenderListWithIndex
function, it seems like I can't insert padding in between the rendered items and theviewport
(without duplicatingrenderListWithIndex
and making my own modified version). I was able to create some space by putting padding on the end of the rendered list items, but now the highlighting for the current list item extends all the way to the scrollbar (see the screenshot below), which I don't want. I just want a one-space-wide vertical blank strip in between the list items and the scrollbar.Any ideas on how this might best be accomplished?
Beta Was this translation helpful? Give feedback.
All reactions