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

dynamic size error when the item have random height #402

Open
nguyenleminhdev opened this issue Feb 16, 2023 · 1 comment
Open

dynamic size error when the item have random height #402

nguyenleminhdev opened this issue Feb 16, 2023 · 1 comment
Labels

Comments

@nguyenleminhdev
Copy link

in my data component:

<template>
  <div class="item">    
    <div class="id"  :style="{ height: `${getRandomInt(290, 300)}px` }">
      {{  source.text  }}
    </div>
  </div>
</template>

height of div in my component is dynamic, and when i scroll, the view is "blink".

it seems that the logic of library to get the height of the div "item" is run before the logic when vue set style height.

so please help me, many thanks

@ghost
Copy link

ghost commented Jul 3, 2023

I try to use vue-virtual-scroller and it seems it has the similar issue. Just in case you want to change the lib to create a virtual scroll.

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

No branches or pull requests

1 participant