VisualElement.OnMeasure currently routes to some inconsistent logic compared to OnMeasureOverride #23244
Labels
area-controls-general
General issues that span multiple controls, or common base classes such as View or Element
s/triaged
Issue has been reviewed
t/bug
Something isn't working
Milestone
Description
VE.OnMeasure follows this path
Which calls this
It should probably call this in both places of the
OnMeasure
overrideThe checks on the constraints of "0" also is going to cause inconsistent behavior. MAUI treats zero as zero.
We should review all the measure code inside
VisualElement
and just force everything to route to the MAUI paths.Right now we hit a lot of inconsistent behavior because
button.Measure
and
(button as IView).Measure
Do different things.
we should make it so those both do the same thing and then if users need to switch back to old behavior they can via a switch.
The text was updated successfully, but these errors were encountered: