New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setTimeout required to scroll item into view for onFinish of show #499
Comments
@petejodo That's an interesting use case I hadn't considered myself before. In any case, reading from the code, One additional thing to keep in mind is that by default the layout process is async (as the layout is computed in web workers) and you can configure (via I think you need to utilize
|
Oh that's interesting. Yeah that makes sense, I'll experiment with that snippet of code and comment back on how it goes. Thanks for the tip |
For the case where a grid item that is shown overflows and wanting to scroll it into view, it requires using
setTimeout
to get it working. This is fine I suppose but it feels like a workaround. Maybe there's a different way to do this that I'm missing though. Here's the snippet of code that requires thesetTimeout
I believe this occurs because layout actually occurs after
onFinish
is called but not exactly sure why that's causing the issue. Thanks!The text was updated successfully, but these errors were encountered: