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

Change the element's width at runtime doesn't update quickly in Mac and iOS platforms #22451

Open SethupathyD opened 6 months ago

SethupathyD commented 6 months ago

Description

I have implemented a custom control using ControlLayout. When changing the width of controls using pan gesture events, it leads the performance issue. It takes time to arrange the elements in the UI in Mac and iOS platforms. I had attached the video for your reference.

https://github.com/dotnet/maui/assets/113881396/7465d8aa-c1e2-4df4-9f18-ef6b9a3d1932

Steps to Reproduce

  1. Clone the SimpleSample from the repository.
  2. launch the sample in MAC.
  3. Try resizing the 0th cell with background color as LightBlue.

Expected Behavior - Cells should arrange without lag. Actual Behavior - Cells are arranged with lag.

Link to public reproduction project repository

https://github.com/SethupathyD/Performance-Leak-on-MacOS-and-IOS.

Version with bug

8.0.7 SR2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

No response

github-actions[bot] commented 6 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.

ninachen03 commented 6 months ago

Verified this issue with Visual Studio 17.6.12(build410) (8.0.21 & 8.0.6). Can repro it.