Skip to content

centeredSlides doesn't work #13494

@jdnichollsc

Description

@jdnichollsc

Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
[ ] 4.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request

Current behavior:
Using centeredSlides="false" doesn't work, the content of the slider is always centered.

Expected behavior:
Has the content of the slider at the top.

Steps to reproduce:
Create a simple slides with a list of items.

Related code:

<ion-slides *ngIf="items.length" centeredSlides="false">
        <ion-slide style="background-color: green">
            <ion-list *ngFor="let filter of items" no-margin>
                <ion-item>{{ filter.name }}</ion-item>
            </ion-list>
        </ion-slide>
</ion-slides>

Plunker (http://plnkr.co/edit/VukUsyh6NSjhuYj9nehz?p=preview)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions