SwipeView icon indicating copy to clipboard operation
SwipeView copied to clipboard

this.wrapper.clientWidth in function refreshSize is 0 if I new a swipeview but the HTML DOM hasn't rendered.

Open 2hanson opened this issue 12 years ago • 1 comments

this.wrapper.clientWidth in function refreshSize is 0 if I new a swipeview but the HTML DOM hasn't rendered. such as fellow code: this.$el.html("

    <div id="swipeview">
    </div>
"); var target = this.$el.find( "#swipeview" )[0]; var carousel = new SwipeView( target, { numberOfPages: slides.length, hastyPageFlip: true }); this code will cause the this.wrapper.clientWidth equal to 0

2hanson avatar Mar 04 '13 11:03 2hanson

I fix it by this pull: https://github.com/cubiq/SwipeView/pull/46

2hanson avatar Mar 05 '13 06:03 2hanson