maui
maui copied to clipboard
[Windows] When ScrollView moves the scrollbar, the content is incomplete
Description
- When ScrollView moves the scrollbar, the content is incomplete
- When the scrollbar is displayed, it will squeeze my other layouts
- This problem does not exist in Mac system
- 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
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.
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.
Hi, I have uploaded the reproducible demo demo: https://github.com/18381898547/Demo.git
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.