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
22.28k stars 1.76k forks source link

There is an error in calculating the Grid height in the Grid layout in TabbedPage. #24769

Open GXSA-Qi opened 2 months ago

GXSA-Qi commented 2 months ago

Description

When the program window using TabbedPage changes, the height of the Grid changes unexpectedly. The demonstration video is as follows:

https://github.com/user-attachments/assets/fc2ab460-116a-4618-ab08-2addbf6e6d95

Steps to Reproduce

  1. Build TabbedPage according to TabbedPage
  2. Introduce the Grid layout into the constructed TabbedPage's XAML file. The XAML code is as follows: ` `
  3. Compile the program and try to change the program window size.
  4. It is obvious that the height of BoxView has changed unexpectedly.

Link to public reproduction project repository

https://github.com/GXSA-Qi/GridTestInTabbedPageInMAUI.git

Version with bug

8.0.82 SR8.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

Windows 11, version 22631.4169

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 2 months 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!

Open similar issues:

Closed similar issues:

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

Zhanglirong-Winnie commented 2 months ago

This issue has been verified using Visual Studio 17.12.0 Preview 2.0(8.0.82 & 8.0.80 & 8.0.72 & 8.0.3). Can repro this issue on Windows platform.