[QScrollArea] setScrollPercentage wrong offset after added element #17472
Labels
area/components
bug/2-confirmed
We have reproduce the problem and confirmed that this is a bug.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
Using
setScrollPercentage
to scroll to the end of the scroll area after adding an element is not working correctly when usingnextTick
. If you usesetTimeout(..., 1)
it works as expected.What did you expect to happen?
It should scroll to the end of the scroll area after adding an element and waiting for the next tick (i.e. after the DOM is updated).
Reproduction URL
https://stackblitz.com/edit/quasarframework-ecbkw4?file=src%2Fpages%2FIndexPage.vue
How to reproduce?
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Components (quasar)
Platforms/Browsers
Firefox
Quasar info output
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: