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

[Windows] When ScrollView moves the scrollbar, the content is incomplete #20719

Open
18381898547 opened this issue Feb 20, 2024 · 4 comments
Open
Labels
area-controls-scrollview ScrollView area-controls-window Window platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@18381898547
Copy link

Description

111

  1. When ScrollView moves the scrollbar, the content is incomplete
  2. When the scrollbar is displayed, it will squeeze my other layouts
  3. This problem does not exist in Mac system
  4. Reproduce version .net 8.0

code:














                    <BoxView Grid.Row="1" Grid.Column="0" Color="Red" />
                    <BoxView Grid.Row="1" Grid.Column="1" Color="Red" />
                    <BoxView Grid.Row="1" Grid.Column="2" Color="Red" />
                    <BoxView Grid.Row="1" Grid.Column="3" Color="Red" />
                    <BoxView Grid.Row="1" Grid.Column="4" Color="Red" />

                    <BoxView Grid.Row="2" Grid.Column="0" Color="Red" />
                    <BoxView Grid.Row="2" Grid.Column="1" Color="Red" />
                    <BoxView Grid.Row="2" Grid.Column="2" Color="Red" />
                    <BoxView Grid.Row="2" Grid.Column="3" Color="Red" />
                    <BoxView Grid.Row="2" Grid.Column="4" Color="Red" />

                    <BoxView Grid.Row="3" Grid.Column="0" Color="Red" />
                    <BoxView Grid.Row="3" Grid.Column="1" Color="Red" />
                    <BoxView Grid.Row="3" Grid.Column="2" Color="Red" />
                    <BoxView Grid.Row="3" Grid.Column="3" Color="Red" />
                    <BoxView Grid.Row="3" Grid.Column="4" Color="Red" />

                    <BoxView Grid.Row="4" Grid.Column="0" Color="Red" />
                    <BoxView Grid.Row="4" Grid.Column="1" Color="Red" />
                    <BoxView Grid.Row="4" Grid.Column="2" Color="Red" />
                    <BoxView Grid.Row="4" Grid.Column="3" Color="Red" />
                    <BoxView Grid.Row="4" Grid.Column="4" Color="Red" />
                </Grid>
            </ScrollView>
        </StackLayout>
    </FlexLayout>
</FlexLayout>

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.3 GA

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@18381898547 18381898547 added the t/bug Something isn't working label Feb 20, 2024
@drasticactions
Copy link
Contributor

Can you please turn this into a full example? If I use ScrollView directly within the view then I believe your layout renders correctly, so my guess is this is related to you using Absolute and FlexLayout.

@drasticactions drasticactions added the s/needs-repro Attach a solution or code which reproduces the issue label Feb 20, 2024
@ghost
Copy link

ghost commented Feb 20, 2024

Hi @18381898547. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Feb 21, 2024
@18381898547
Copy link
Author

Hi, I have uploaded the reproducible demo
demo: https://github.com/18381898547/Demo.git

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Feb 23, 2024
@jaosnz-rep
Copy link

Verified this issue with Visual Studio 17.10.0 Preview 2(8.0.10). it can be reproduced on Windows platform using the code in the picture.
image

@jaosnz-rep jaosnz-rep added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Mar 20, 2024
@Eilon Eilon removed the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label May 14, 2024
@jsuarezruiz jsuarezruiz removed the s/needs-attention Issue has more information and needs another look label Jun 6, 2024
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Jun 6, 2024
@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 3, 2024
@samhouts samhouts added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-scrollview ScrollView area-controls-window Window platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants