Git Product home page Git Product logo

ember-paper-swiper's People

Contributors

betocantu93 avatar ember-tomster avatar mellatone avatar miguelcobain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ember-paper-swiper's Issues

Publish to npm

I just noticed that #6 was merged but never published to npm, so octane projects would face this issue because of no jquery by default

Initial display of swiper contains slides with a width too short to fit dialog width

Hi, I have attempted to implement the swiper demo into my project (https://coachlogix.github.io/ember-paper-swiper/) and encountered a bug where the width of the slides when the dialog is first opened, do not have a width that matches the width of the dialog.

This bug does not occur in the demo url above.

I'm using ember-cli: 3.11, ember-paper-swiper: 0.0.4

My demo code is a copy-paste of the example:

{{#if showSwiper}}
  {{#paper-swiper as |swiper|}}
   ....
{/if}}

I copied the CSS styles from the demo url above into my project to get the same appearance for the slides.

Please see this basic repo I created which displays the problem here

It looks like the updateContainerWidth() is not triggered correctly when the dialog is first opened. (update: I added a 1sec delay to the debounce and this shows that the dialog loads up showing 1 slide correctly, then when updateContainerWidth() is triggered from didInsertElement, it resizes the dialog width larger to show both slides at the same time. Still investigating what is going on here)

If I resize the browser window after the dialog is opened, then the slides are re-sized corrected and everything looks great.

I noticed the inline style of the slide component is controlled by this code:

widthStyle: computed('containerWidth', function() {
    let containerWidth = this.get('containerWidth');
    return containerWidth ? htmlSafe(`width: ${containerWidth}px`) : null;
}),

Example of problem:

swiper-bug

Any help appreciated, this is a nice component. Thanks.

how to use it without paper-wormhole ?

hi ,i want to use this component without paper-wormhole,
i just dell this line "destinationId: 'paper-wormhole'," in paper-swiper.js,
can you just add this usecase as an option ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.