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

Default width does not consider padding/margin of parent view #22

Open
heese opened this issue May 29, 2017 · 3 comments
Open

Default width does not consider padding/margin of parent view #22

heese opened this issue May 29, 2017 · 3 comments

Comments

@heese
Copy link

heese commented May 29, 2017

When computing the width of the slides it does not consider the width of the layout containing the tag <slides> , e.g., padding or margin. A workaround is to set the slide width explicitly (thanks for providing this attribute) but it would be more convenient if this could be done automatically.

Unfortunately, I haven't found a way to get the width of the parent layout yet. I hope that you just know how to deal with it :-)

The following example demonstrates the effect:

<StackLayout style="padding:40">
    <Label text="Slide 1" textWrap="true" textAlignment="center"></Label>

    <slides loop="true" pageIndicators="true">
        <slide class="slide slide-1">
            <Label text="Slide 1" textWrap="true" textAlignment="center"></Label>
        </slide>
    </slides>
</StackLayout>
@sfaessler
Copy link

Any news here? Seems like I'm having the same problem.

@tskweres
Copy link

tskweres commented Feb 9, 2019

same

@michaelfidelis
Copy link

Any solution/workaround?

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

4 participants