SSENSE/vue-carousel

Bug: wrong slide width on first init

Open

#233 opened on Jul 4, 2018

View on GitHub
 (7 comments) (0 reactions) (0 assignees)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.

Contributor guide