Skip to content

ScrollView is not scrollable inside of RefreshView #5772

@Dreamescaper

Description

@Dreamescaper

Description

Seems like VerticalStackLayout grows infinitely inside of RefreshView, therefore you cannot scroll any content inside of RefreshView.

Steps to Reproduce

  1. Run the page with the following content:
    <RefreshView>
        <ScrollView>
            <VerticalStackLayout Spacing="50">
                <Label Text="1" />
                <Label Text="2" />
                <Label Text="3" />
                <Label Text="4" />
                <Label Text="5" />
                <Label Text="6" />
                <Label Text="7" />
                <Label Text="8" />
                <Label Text="9" />
                <Label Text="10" />
                <Label Text="11" />
                <Label Text="12" />
                <Label Text="13" />
                <Label Text="14" />
                <Label Text="15" />
                <Label Text="16" />
                <Label Text="17" />
                <Label Text="18" />
                <Label Text="19" />
                <Label Text="20" />
            </VerticalStackLayout>
        </ScrollView>
    </RefreshView>
  1. Try to scroll down.

ER:
Content is scrolled successfully,

AR:
You cannot scroll down.

screen recording

qemu-system-x86_64_feQxnECfxb

Version with bug

Preview 14 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows

Affected platform versions

Android 12

Did you find any workaround?

You can wrap it in yet another ScrollView, so it would look something like that:

    <ScrollView>
        <RefreshView>
            <ScrollView>
                <VerticalStackLayout>
                      ...
                </VerticalStackLayout>
            </ScrollView>
        </RefreshView>
    </ScrollView>

Relevant log output

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions