maui icon indicating copy to clipboard operation
maui copied to clipboard

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

Open 18381898547 opened this issue 1 year ago • 2 comments

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: <AbsoluteLayout> <FlexLayout AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,0,1,1"> <StackLayout BackgroundColor="Yellow" FlexLayout.Basis="250"/> <FlexLayout Direction="Column" FlexLayout.Grow="1" > <StackLayout Orientation="Horizontal" BackgroundColor="Pink" FlexLayout.Basis="50"> <Button Text="Test" /> </StackLayout> <StackLayout BackgroundColor="AliceBlue" FlexLayout.Grow="1" > <ScrollView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Orientation="Both"> <Grid RowDefinitions=",,,," ColumnDefinitions=",,,," RowSpacing="10" ColumnSpacing="10" Padding="10" HeightRequest="400"> <BoxView Grid.Row="0" Grid.Column="0" Color="Red" /> <BoxView Grid.Row="0" Grid.Column="1" Color="Red" /> <BoxView Grid.Row="0" Grid.Column="2" Color="Red" /> <BoxView Grid.Row="0" Grid.Column="3" Color="Red" /> <BoxView Grid.Row="0" Grid.Column="4" Color="Red" />

                    <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 avatar Feb 20 '24 06:02 18381898547

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 avatar Feb 20 '24 08:02 drasticactions

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.

ghost avatar Feb 20 '24 08:02 ghost

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

18381898547 avatar Feb 23 '24 10:02 18381898547

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 avatar Mar 20 '24 09:03 jaosnz-rep