Problem with AutoSizer in v9.21.1
See original GitHub issueHey
In my app I have tabs with virtualized lists on it. I use scrollTop
property to restore scroll position when switching tabs. After update to 9.21.1 I faced strange bug (in 9.21.0 same code works fine)
What is the current behavior?
Steps to reproduce
- scroll List1 on Tab 1
- go to Tab 2
- scroll List2 on Tab 2
- back to Tab 1 (
List with AutoSizer
) -> BUG: blank list. List will be shown if scroll - back to Tab 2 (
List without Autosizer
) -> works as needed (restore previous scrollTop)
Code https://codesandbox.io/s/reactvirtualized9211-two-tabs-with-scrolltop-w5vpd
Which versions of React and react-virtualized, and which browser / OS are affected by this issue? Did this work in previous versions of react-virtualized?
Browser | Chrome 70 |
OS | Debian |
React | 16.8.6 |
React DOM | 16.8.6 |
react-virtualized | 9.21.1 |
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:11
Top Results From Across the Web
Using react-virtualized AutoSizer results in props violation for ...
I'm trying to combine FlexTable and AutoSizer (from react-virtualized) but keep getting an error that I do not quite see the reason for....
Read more >react-virtualized-auto-sizer examples - CodeSandbox
Learn how to use react-virtualized-auto-sizer by viewing and forking example apps that make use of react-virtualized-auto-sizer on CodeSandbox.
Read more >Known Issues and Limitations (igGrid) - Ignite UI
Known Issues and Limitations (igGrid) The following table summarizes the known issues and limitations of the igGrid™ control. Detailed explanations of some.
Read more >GKE release notes archive | Google Kubernetes Engine (GKE)
The default version for new clusters is now v1.13.11-gke.9 (previously ... The DNS Replica Auto-Sizer now creates a minimum of 2 replicas except...
Read more >Input Output Reference - EnergyPlus
1.18.1 Input for Design Calculations and Component Autosizing . ... 1.56.1 Introduction to Operational Faults Modeling .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ashmigelski, I have reverted back to version
9.20.0
in the project I’m currently working on and also updated your code sandbox to this version. This appears to have fixed the syncing issue between the AutoSizer and Table components. If you are looking for a temporary solution until the issue can be resolved going forward this may help you out.Hello, I confirm this issue ! Took me a while to understand that it was not my fault 😉
The “hack” I’ve found is instead of returning a width=0 from calcColumnWidth, I return 0.1 - in my context, it doesn’t do a difference (except it works 😃