Skip to content

Commit

Permalink
fix: add timeout to avoid wrong container height display
Browse files Browse the repository at this point in the history
Close #7
  • Loading branch information
paodb authored and mlopezFC committed Mar 7, 2023
1 parent 98bedc4 commit 8741bc9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ import Splide from '@splidejs/splide';
import { Video } from '@splidejs/splide-extension-video';

window.vcfsplide = {

create: function(container) {
setTimeout(() => this._createSlider(container));
},

create: function (container) {
_createSlider: function (container) {
// define main slider
var main = new Splide("#main-slider-" + container.id, {
type: 'loop',
Expand Down

0 comments on commit 8741bc9

Please sign in to comment.