maui icon indicating copy to clipboard operation
maui copied to clipboard

VisualElement.OnMeasure currently routes to some inconsistent logic compared to OnMeasureOverride

Open PureWeen opened this issue 1 year ago • 0 comments

Description

VE.OnMeasure follows this path

image

Which calls this

image

It should probably call this in both places of the OnMeasure override

image

The 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.

PureWeen avatar Jun 25 '24 15:06 PureWeen