Git Product home page Git Product logo

Comments (8)

nbarrett avatar nbarrett commented on June 28, 2024 1

Thanks for pointer @MurhafSousli! I never thought to look at my global config which I must have copied from somewhere but it had both:

autoHeight: true,
imageSize: "cover"

from ngx-gallery.

MurhafSousli avatar MurhafSousli commented on June 28, 2024

Maybe you are calling a function that sets the config from the service or component ref, I suggest you try to set the gallery items using the items input of the gallery then see if cover is applied

from ngx-gallery.

nbarrett avatar nbarrett commented on June 28, 2024

On my production site, I have tried initialising the gallery both with Template Binding (as per stackblitz) and via Gallery Service and it still behaves the same. I also tried initialising the stackblitz project via a Gallery Service and this consistently works so there's something about my project that's making it not work. Can you suggest by looking at the inspector on my project what might be wrong?

from ngx-gallery.

MurhafSousli avatar MurhafSousli commented on June 28, 2024

The production site doesn't help, if you share a link to the repo maybe I can check your code.

from ngx-gallery.

nbarrett avatar nbarrett commented on June 28, 2024

Thanks for your offer to look at the repo - this is the area of code where the gallery component is located: https://github.com/nbarrett/ngx-ramblers/blob/main/projects/ngx-ramblers/src/app/album/view/album-gallery.ts

from ngx-gallery.

MurhafSousli avatar MurhafSousli commented on June 28, 2024

https://github.com/nbarrett/ngx-ramblers/blob/167c7aaa2e26d89ea384946da08798da5995ebb5/projects/ngx-ramblers/src/app/album/view/album-gallery.ts#L88

Try this

 this.galleryRef = this.gallery.ref(this.galleryId, {
   imageSize: 'cover'
 });

from ngx-gallery.

nbarrett avatar nbarrett commented on June 28, 2024

thanks for suggestion - sadly that didn't make any difference 😞 - can you think of anything else I can do to diagnose this problem please?

from ngx-gallery.

MurhafSousli avatar MurhafSousli commented on June 28, 2024

You can try setting imageSize in the global config

from ngx-gallery.

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.