Skip to content

dynamic size error when the item have random height #402

Open
@nguyenleminhdev

Description

@nguyenleminhdev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions