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

[Android] ItemsRepeater with ItemsRepeaterExtensions.SupportsIncrementalLoading only rendered when interacted #1280

Open
2 of 17 tasks
eriklimakc opened this issue Nov 8, 2024 · 2 comments
Assignees
Labels
control/extensions-helpers-markup Related to attached properties, helper classes, or markup extensions without a finer tag kind/bug Something isn't working

Comments

@eriklimakc
Copy link
Contributor

Current behavior

In a specific scenario the ItemsRepeater with ItemsRepeaterExtensions.SupportsIncrementalLoading is only rendered when interacted. If ItemsRepeaterExtensions.SupportsIncrementalLoading is removed then items are rendered when the control is loaded.

<ScrollViewer Background="Red"
              HorizontalScrollMode="Disabled"
              VerticalScrollBarVisibility="Hidden">
    <uer:FeedView Background="Green"
                  Source="{Binding Recipes}">
        <DataTemplate>
            <muxc:ItemsRepeater Background="Orange"
                                ItemTemplate="{StaticResource MyItemsRepeaterTemplate}"
                                ItemsSource="{Binding Data}"
                                utu:ItemsRepeaterExtensions.SelectionMode="Multiple"
                                utu:ItemsRepeaterExtensions.SupportsIncrementalLoading="True"
                                Layout="{StaticResource ResponsiveGridLayout}" />
        </DataTemplate>
    </uer:FeedView>
</ScrollViewer>

As this is a bit specific I'm not really sure if it's a toolkit issue, a FeedView issue, or something else.

A workaround for this is to wrap the whole thing with a <utu:AutoLayout>.

Recording.2024-11-08.154646.mp4

How to reproduce it (as minimally and precisely as possible)

UnoApp3.zip

Nuget Package:

Package Version(s):

Affected platform(s):

  • WebAssembly
  • Android
  • iOS
  • macOS (AppKit)
  • Mac Catalyst
  • Skia
    • WPF
    • GTK (Linux)
    • Linux Framebuffer
    • Tizen
  • Windows

IDE:

  • Visual Studio 2022
  • Visual Studio 2019
  • Visual Studio Code
  • Visual Studio for Mac
  • Rider Windows
  • Rider macOS

Relevant plugins:

Anything else we need to know?

@eriklimakc eriklimakc added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Nov 8, 2024
@eriklimakc
Copy link
Contributor Author

@Xiaoy312 would you have an idea?

cc @kazo0

@eriklimakc
Copy link
Contributor Author

It also works if you wrap the ItemsRepeater in a ScrollViewer, so an example would be:

<ScrollViewer Background="Red"
              HorizontalScrollMode="Disabled"
              VerticalScrollBarVisibility="Hidden">
    <uer:FeedView Background="Green"
                  Source="{Binding Recipes}">
        <DataTemplate>
            <ScrollViewer>
                <muxc:ItemsRepeater Background="Orange"
                                    ItemTemplate="{StaticResource MyItemsRepeaterTemplate}"
                                    ItemsSource="{Binding Data}"
                                    utu:ItemsRepeaterExtensions.SelectionMode="Multiple"
                                    utu:ItemsRepeaterExtensions.SupportsIncrementalLoading="True"
                                    Layout="{StaticResource ResponsiveGridLayout}" />
            </ScrollViewer>
        </DataTemplate>
    </uer:FeedView>
</ScrollViewer>

cc @kazo0 @Xiaoy312

@Xiaoy312 Xiaoy312 self-assigned this Nov 13, 2024
@Xiaoy312 Xiaoy312 added the control/extensions-helpers-markup Related to attached properties, helper classes, or markup extensions without a finer tag label Nov 13, 2024
@Xiaoy312 Xiaoy312 removed the triage/untriaged Indicates an issue requires triaging or verification. label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
control/extensions-helpers-markup Related to attached properties, helper classes, or markup extensions without a finer tag kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants