I am trying to utilize the initial-item feature for ons-carousel. I am using the following code. When I try to put it in and ons-list and initial-index="1" the item is offset to the left revealing a sliver of the other item. As soon as I try to swipe it goes back to the correct position
<section style="background-color: white">
<ons-list ng-repeat="task in tasks">
<ons-list-item modifier="chevron">
<ons-carousel initial-index="1" var="taskCarousel" swipeable="" auto-scroll="" style="width: 100%; height: 70px; color: black; background-color: #33cd5f">
<ons-carousel-item style="background-color: #33cd5f">
View #1 {{ task.descr }}
</ons-carousel-item>
<ons-carousel-item style="background-color: #5b2c7a">
View #2 {{ task.details }}
</ons-carousel-item>
</ons-carousel>
</ons-list-item>
</ons-list>
</section>
app.controller('TestController', function ($scope) {
$scope.tasks = [
{
id: "1",
descr: "Task Description #1",
details: "Details of Task #1"
},
{
id: "2",
descr: "Task Description #2",
details: "Details of Task #1"
},
{
id: "3",
descr: "Task Description #3",
details: "Details of Task #1"
},
{
id: "4",
descr: "Task Description #4",
details: "Details of Task #1"
}
];
});