Giter Site home page Giter Site logo

Comments (6)

loup-brun avatar loup-brun commented on August 29, 2024 1

I think that Swipe sets the width according to actual space taken up by the slides. On the mobile version, the slides are invisible, and thus take up no actual space (so there's where the 0px comes from).

One way to deal with this is to trigger the Swipe setup method when the menu is shown. In the code, it could look like this for instance:

showMenu(); // show the menu, the way you implement it
mySwipe.setup(); // now that the menu is shown, setup the slides

With jQuery, it could look like this:

$('#menu').show(function() { // callback function
  mySwipe.setup();
});

from swipe.

loup-brun avatar loup-brun commented on August 29, 2024

Could you please provide a jsbin or something live, it is difficult to understand your problem. What do you mean by an "auto-hiding menu"?

from swipe.

vicding avatar vicding commented on August 29, 2024

Thanks for the prompt reply. herewith the jsbin link to the mobile version which does not work.

This is the PC version of the menu bar with happy customer slider using Swipes
screen shot 2017-05-15 at 07 24 40

In the Mobile version, visitor has to click the link to see the menu bar
screen shot 2017-05-15 at 07 25 30

Menu bar in the mobile version does not show the slides, but only the title
screen shot 2017-05-15 at 07 25 41

In mobile version, the menu bar is hidden by default and only be seen when the menu button is clicked.

from swipe.

vicding avatar vicding commented on August 29, 2024

Thanks for the help. I'll try and revert.

from swipe.

augustom87 avatar augustom87 commented on August 29, 2024

having same issue, did you find any solution?

from swipe.

augustom87 avatar augustom87 commented on August 29, 2024

having same issue, did you find any solution?

calling mySwipe.setup({options}) with initial options before showing swipe again worked for me

from swipe.

Related Issues (20)

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.