Git Product home page Git Product logo

Comments (9)

9bitStudios avatar 9bitStudios commented on August 13, 2024

Remove clone:false.

from flexisel.

rajasajidmanzoor avatar rajasajidmanzoor commented on August 13, 2024

Hello,
I tried this but this does not work. It make changes in code which results in layout changes.
see here is what is displayed after removing clone:false

image

Please provide suitable solutions..
I need to add ad div with clear:both, please tell me how can i restrict div element to be cloned again and again..

from flexisel.

9bitStudios avatar 9bitStudios commented on August 13, 2024

You are likely seeing that because the inner div needs to be a bit wider in the CSS which you can increase. How to do this and where is discussed in issue #5. Please let me know if there is anything else that you need.

from flexisel.

rajasajidmanzoor avatar rajasajidmanzoor commented on August 13, 2024

no. actually i am having following code

     <ul class="flex">
      <li> <img....></li>
      <li> <img....></li>
      <li> <img....></li>
      <li> <img....></li>
      <div class="clearfix"></div>
      </ul>

if i add clone:true then flexisel is clonning entire section inside

from flexisel.

9bitStudios avatar 9bitStudios commented on August 13, 2024

Ah ok. So the clone is happening at the end of the "appendHTML" method

if (settings.clone) {
    var cloneContent = object.children().clone();
    object.append(cloneContent);
}

You'll need to target it to just clone the list items

if (settings.clone) {
    var cloneContent = object.children('li').clone();
    object.append(cloneContent);
}

But you will need to keep clone: true to have the infinite scroll. Give that a try and let me know how that works out for you.

from flexisel.

cordvision avatar cordvision commented on August 13, 2024

Hello
I'm having the same problem. As soon as I add more than 4 pictures, I get "double rows" or sometimes even "triple rows". If I turn clone "off", it only displays a double row when loading the first picture but it's not fixing the issue. Also tried your proposed fix, but had no luck. Here's my test website that exhibits the problem: http://michaeloldhouse.com/AlthausProductions/portfolio.php
Any help is appreciated!

from flexisel.

9bitStudios avatar 9bitStudios commented on August 13, 2024

Hi cordvision -- I think you will also need to make the adjustment described in issue #5 I actually made this change in the latest commit as well so if you want to pull the latest that should be in there for you. Also, for the infinite scrolling you will need to have clone:true. The example provided has clone set to false.

from flexisel.

9bitStudios avatar 9bitStudios commented on August 13, 2024

Did this resolve the issue for you?

from flexisel.

rajasajidmanzoor avatar rajasajidmanzoor commented on August 13, 2024

@9bitStudios i am not using felxisel. Now I am using owl carousel on this project.

Will try flexisel in any other project again and hope this issue is fixed untill then..

from flexisel.

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.