SSENSE/vue-carousel

Bug: wrong slide width on first init

Open

#233 geöffnet am 4. Juli 2018

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (1.705 Stars) (513 Forks)batch import
buggood first issuehelp wanted

Beschreibung

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.

Contributor Guide