Skip to content

Commit e52d99c

Browse files
committed
Fix - VueUiCarouselTable - Fix tr offset when resizing animating table
1 parent fb0c5c1 commit e52d99c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/vue-ui-carousel-table.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,13 @@ onMounted(() => {
277277
captionHeight.value = caption.value ? caption.value.getBoundingClientRect().height : 0;
278278
tableRowHeight.value = tableRow.value ? tableRow.value.getBoundingClientRect().height : 0;
279279
scrollIndex.value = 0;
280-
setTrElements();
280+
nextTick(() => {
281+
pauseAnimation();
282+
lastTimestamp.value = 0;
283+
init.value = 0;
284+
setTrElements();
285+
resumeAnimation();
286+
});
281287
})
282288
if(tableContainer.value) {
283289
observer.observe(tableContainer.value);

0 commit comments

Comments
 (0)