sebelga / ionic-advanced-carousel

Carousel directive for Ionic Frameworks that allows any custom template as an item.
http://sebelga.github.io/ionic-advanced-carousel/
GNU General Public License v2.0
42 stars 18 forks source link

Items on new line #5

Closed bknill closed 8 years ago

bknill commented 8 years ago

Hi - great little carousel!

I've got it working but a items are getting pushed onto a new line in my app, if I add 20 from the createArray function it's around 18-20 that go on a new line, if I use my own data and add the items after they've loaded it's around half that go onto a new line.

I'm using this within a tab so I'm not sure if that has any bearing?

bknill commented 8 years ago

A $scope.$apply(); after the $scope.$broadcast('a-carousel.arrayupdated', 'carousel-1'); seems to have fixed it interrmittedly

bknill commented 8 years ago

OK I've fixed this by using the demo 1 example. Must be something to do with measuring the width when using the text directive.

sebelga commented 8 years ago

Hi, great you found the solution. I was going to say that it seemed like a CSS problem on your wrapper.