SSENSE/vue-carousel

Bug: wrong slide width on first init

开放

#233 创建于 2018年7月4日

 (7 条评论) (0 个反应) (0 位负责人)JavaScript (513 个派生)batch import
buggood first issuehelp wanted

仓库指标

星标
 (1,705 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Version: 0.9.0

Description

Slides has wrong width on first init.

It looks like reason of this is calculating slides width right after component init, when fonts are not loaded yet.

UPDATE: Here is my repository with demo page.

Screenshot

Screenshot

Steps to reproduce

  1. Open demo page.
  2. Look at last slide.
  3. Click on “×” button.
  4. Slides width fixed now.

After it all resources would be cached already and you need to clear cache with Ctrl + F5 to reproduce bug again.

Behavior

Expected

Slides fix its width only after all resources are loaded.

Observed

Slides fix its width right after initialization.

贡献者指南