Comments (5)
you're right, at the moment, the container size is determined at sartup byt the first li size.
we should rely on css.
from angular-carousel.
Here's how it works at the moment, maybe you can have some ideas to help resolve this :
- We add a wrapper div around your UL so we only display one slide at a time.
- That wrapper size is then determined from the size of the first LI detected and set as an inline style.
(the UL/LI blocks are transformed in a very long single line)
Solutions :
- listen to
orientationchange
event and update the container size from the first LI - add autosize=true|false attribute to the directive so that we dont do size detection based on the LI but rather let you control that using your own CSS. (there is already a
.rn-carousel-container
CSS class.)
Any comments ?
from angular-carousel.
Hi, thanks for the updates. I've been working backend the last few weeks, I'll be coming back to this soon and give you feedback.
from angular-carousel.
should be fixed now, we update the carousel size when we detect orientationchange
from angular-carousel.
Is there a public API to trigger resize? Currently doesnt size properly in a modal instance, but I could trigger a resize if there was a public API.
from angular-carousel.
Related Issues (20)
- Problem with img selector
- Any one else having issue with minification
- RTL Support HOT 3
- Cannot read property 'lenght'of null in currentSlides.lenght HOT 2
- Error: Unknown provider: $intervalProvider <- $interval <- rnCarouselDirective
- Suggested improvement for rnCarouselIndicators HOT 1
- ng-style with background image HOT 2
- Is this a working plugin after all? HOT 5
- rn-carousel-controls doesn't present controls
- Multiple image slides, move one image slide at a time HOT 1
- carousel.index does not change
- Carousel inside carousel? (nesting) HOT 1
- Slides loading below each other for half a second HOT 1
- binding next/previous to left and right keys
- Custom Template for Controls
- display Multiple item but move multiple item at a time
- CDN is not working for me..
- Big data multi-item works very slowly ~ 800 items in 15 carousels HOT 2
- Can't copy text from slider
- angular-carousel conflict with ng-touch module from angular-material
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 angular-carousel.