Skip to content
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

Grid becomes empty after changing inner tabs with Virtual Scrolling #438

Open
marceloavf opened this issue Jan 13, 2021 · 2 comments
Open

Comments

@marceloavf
Copy link

Bug Report

Package versions:

devexteme version: 20.2.4
devextreme-vue version: 20.2.4

Steps to reproduce:

  1. Wait for the data to load in the DxPivotGrid.
  2. Scroll horizontally to activate virtual scroll changes (it also happens when there is a lot of data vertically)
  3. Go to another tab (about)
  4. Then come back home, you will see it blank, but if you scroll in a little it'll come back.

https://codesandbox.io/s/relaxed-voice-m1hwb?file=/src/components/HelloWorld.vue

Current behavior:

When changing tabs, data disappears until you scroll the table again.

Expected behavior:

Expected to be able to see data even when changing tabs, from where we were.

Screenshots:

When enters the page:
image

When changes tab after virtual scrolls actives:
image

@marceloavf
Copy link
Author

One way that I found to bring it back was to call repaint() method after it get back from keep-alive instance with activated lifecycle hook.

@marceloavf
Copy link
Author

updateDimensions() also seems to work and performs better than repaint every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant