add support for onResize event / expose ref to list wrapper #582
Replies: 3 comments 2 replies
-
Similar feature was requested several times (#301, #408). I'm basically positive to implement it but I don't have enough time to define good API. If you need it early, it would be helpful if you could create a PR. |
Beta Was this translation helpful? Give feedback.
-
@vilgeforc5 I use the same workaround (ResizeObserver for inner wrapper), and I couldn't make it scroll to bottom before the next repaint, so it still looks "jumpy". Do you have the same problem or does it work good for you? |
Beta Was this translation helpful? Give feedback.
-
@inokawa |
Beta Was this translation helpful? Give feedback.
-
Hi, we're using VList for virtualized message list and we've encountered problem when message font size changes (after messages are mounted and everything)
The problem is that scroll isn't preserved for the very bottom, it kind of "jumps" up for a little bit.
Currently, we manually use ResizeObserver for inner wrapper (getting it via el.firstElementChild?.firstElementChild?.firstElementChild)
I think it'll be good to add callback/expose ref so that such events can be handled "out of box"
Beta Was this translation helpful? Give feedback.
All reactions