Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize images based on parents width #66

Closed
matejhocevar opened this issue Jul 9, 2018 · 1 comment
Closed

Resize images based on parents width #66

matejhocevar opened this issue Jul 9, 2018 · 1 comment

Comments

@matejhocevar
Copy link

How can I make sure that slider uses 100% of parents width? I want to make sure that image fits 100% on every mobile device.

Thank you

@matejhocevar
Copy link
Author

I managed to update it, something like this:

<StackLayout class="intro">
    <slides [pageIndicators]="true">
        <slide class="slide slide-1">
            <Image src="~/assets/images/intro/1.png" strech="aspectFit"></Image>
        </slide>
        <slide class="slide slide-2">
            <Image src="~/assets/images/intro/2.png" strech="aspectFit"></Image>
        </slide>
        <slide class="slide slide-3">
            <Image src="~/assets/images/intro/3.png" strech="aspectFit"></Image>
        </slide>
    </slides>
</StackLayout>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant