dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.98k stars 1.71k forks source link

Scrollviews inside Grids come up faulty in screenshots #23733

Open MauiUIui opened 1 month ago

MauiUIui commented 1 month ago

Description

Taking a screenshot where there is a ScrollView whose children are too much for the available space doesn't show how the screen actually looks. Instead the children of the ScrollView keep taking space down the screen.

Steps to Reproduce

 <Grid RowDefinitions="200,Auto,Auto" >
    <ScrollView Grid.Row="0">
        <StackLayout>
            <Label FontAttributes="Bold" FontSize="84" Text="Many Words"/>
            <Label FontAttributes="Bold" FontSize="84" Text="Many Words"/>
            <Label FontAttributes="Bold" FontSize="84" Text="Many Words"/>
            <Label FontAttributes="Bold" FontSize="84" Text="Many Words"/>
        </StackLayout>
    </ScrollView>
    <Label Grid.Row="1" Text=" sdfjmaskv a kaf fl f m fm lf mf fmmf f , v"/>
    <Button Grid.Row="2" Text="Take SS" Clicked="Button_Clicked"/>
</Grid>
Expected Actual
Should be Currenty is
IScreenshotResult screen = await Screenshot.Default.CaptureAsync();
Stream stream = await screen.OpenReadAsync();

Link to public reproduction project repository

No response

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

dotnet-policy-service[bot] commented 1 month ago

Hi @MauiUIui. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

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.

MauiUIui commented 1 month ago

The latest version have some a regression bug that's hard to reproduce, that's why I'm not mainly using it. However I tried it and nothing changed.