Skip to content

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

@2hanson

Description

@2hanson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions