Comments (8)
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"
- the fix was simply to remove the autoHeight property from it. Production site now looking perfect ❤️ thanks again for your help in getting this resolved.
from ngx-gallery.
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.
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.
The production site doesn't help, if you share a link to the repo maybe I can check your code.
from ngx-gallery.
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.
Try this
this.galleryRef = this.gallery.ref(this.galleryId, {
imageSize: 'cover'
});
from ngx-gallery.
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.
You can try setting imageSize
in the global config
from ngx-gallery.
Related Issues (20)
- Lightbox: Use the native dialog element instead of CDK dialog
- Thumbnails are not aligned at the start HOT 2
- cant install it -new to angular- HOT 1
- Make it possible to use the gallerize directive in a container in which gallery items are added and removed dynamically. HOT 2
- itemTemplate for Lightbox Gallery HOT 12
- (click) dynamically change class HOT 1
- capture currently visible and clicked image HOT 3
- Fix custom item template documentation
- Lightbox : Wrong image opened using custom imageTemplate HOT 2
- Possible to disable Lightbox features?
- Does NG-gallery support .ogv video files
- My ng-gallery is not loading the main image initially, even with preload HOT 3
- Installation guide in wiki missing important part about CDK
- Add corssorigin support
- Does ng-gallery support angular 18+? HOT 1
- Update homepage URL in NPM
- Allowing the sliding of one image at a time using gestures
- Refactor GalleryRef and Lightbox services
- ng-gallery lightbox not work on Angular 18 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-gallery.