MeasureInvalidated events are now fired too often #25264
Labels
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
platform/android 🤖
platform/iOS 🍎
platform/macOS 🍏
macOS / Mac Catalyst
platform/windows 🪟
potential-regression
This issue described a possible regression on a currently supported version., verification pending
s/triaged
Issue has been reviewed
t/bug
Something isn't working
Milestone
Description
PR #23052 broke our unit tests where we ensure that we don't get too many layout cycles from changing the binding contexts. While the PR itself fixed a real problem it introduces another one. Visual elements that are constrained to certain size from the top of the hierarchy don't break the propagation of the
MeasureInvalidated
event from the children here:maui/src/Controls/src/Core/VisualElement/VisualElement.cs
Lines 1399 to 1404 in 24c6cd4
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.90 SR9
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.82 SR8.2
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: