Closed rillstone closed 4 years ago
@rillstone Thanks for the report!
v0.54
seems ok. I don't reproduce with the sample you provided.
But I do reproduce in 0.55-preview
. Will try to fix that.
In the meantime, please use v0.54
instead.
Should be fixed in 0.55.0-preview3
When switching from one
View.Grid
to another, it seems to displace the content inside as it reuses the attributes such as thecoldefs
androwdefs
from the previous grid. I believe this could be a similar issue to #622 which was fixed in PR #627. However, I am experiencing similar behaviour to this issue now. I am using Fabulous0.54.0
and Xamarin.Forms4.6.0.726
Reproducing this issue with:
When clicking Change from Page One to Page Two, the content of the
View.Grid
in the second view shows asI understand that the reason for this is when updating the views, the views are being reused from the
canReuseView
function I worked around this issue by adding a uniqueautomationId
to both grids, in order to get a false return incanReuseView
for thecanReuseAutomationId prevChild newChild
condition:I'm not quite satisfied with this workaround as the
automationId
should be used for automation testing. Is this expected behaviour from the view reuse logic? or could there be some missing checks/edge cases inside thiscanReuseView
function causing views to be reused when they shouldn't be?TIA