SSENSE/vue-carousel

Bug: wrong slide width on first init

Open

#233 ouverte le 4 juil. 2018

Voir sur GitHub
 (7 commentaires) (0 réactions) (0 assignés)JavaScript (1 705 stars) (513 forks)batch import
buggood first issuehelp wanted

Description

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.

Guide contributeur