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

item position changed while scrolling in blazor virtualize with multiple items in row. #46383

Closed
1 task done
kmkrish001 opened this issue Feb 1, 2023 · 1 comment
Closed
1 task done
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-virtualization This issue is related to the Blazor Virtualize component ✔️ Resolution: Duplicate Resolved as a duplicate of another issue

Comments

@kmkrish001
Copy link

kmkrish001 commented Feb 1, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

item position changed while scrolling in blazor virtualize with multiple items in row.

Expected Behavior

Need to maintain the same position and scroll will works to load the row of items.

Steps To Reproduce

<ul style="height:400px;overflow-y:scroll">
    <Virtualize Items="ListItems" Context="item">
                <ItemContent>
                        <li class="li-item">
                            <span>@item</span>
                        </li>
                </ItemContent>
    </Virtualize>
</ul>

@code { public List<string> ListItems = new List<string>(); protected override void OnInitialized() { for (int i = 0; i < 1000; i++) { ListItems.Add("Item " + i); } } }

<style>
.container {
    border: 1px solid gray;
}

.li-item {
    float: left;
    border: 1px solid red;
    height: 80px;
    width: 80px;
}

.li-item {
    float: none;
    display: inline-block;
}
</style>

Exceptions (if any)

No response

.NET Version

7.0

Anything else?

screenshot,
image

image

@mkArtakMSFT mkArtakMSFT added area-blazor Includes: Blazor, Razor Components feature-blazor-virtualization This issue is related to the Blazor Virtualize component labels Feb 1, 2023
@mkArtakMSFT
Copy link
Member

Thanks for contacting us.
This is currently not supported and the work to add support for it is tracked by #28821

@mkArtakMSFT mkArtakMSFT closed this as not planned Won't fix, can't repro, duplicate, stale Feb 1, 2023
@mkArtakMSFT mkArtakMSFT added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Feb 1, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Mar 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-virtualization This issue is related to the Blazor Virtualize component ✔️ Resolution: Duplicate Resolved as a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants