Skip to content

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

@heese

Description

@heese

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions