Bug 57278 - ForceUpdateSize does not work with menutiems
Summary: ForceUpdateSize does not work with menutiems
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.5
Hardware: Macintosh Mac OS
: Normal major
Target Milestone: ---
Assignee: Jimmy [MSFT]
Depends on:
Reported: 2017-06-08 16:15 UTC by jeremy.butts
Modified: 2017-06-27 15:23 UTC (History)
3 users (show)

Tags: forceupdatesize, hang, ac
Is this bug a regression?: ---
Last known good build:

Dynamic ListView Row Resizing (220.57 KB, application/zip)
2017-06-10 18:01 UTC, jeremy.butts
Repeated calls to ForceUpdateSize (227.25 KB, application/zip)
2017-06-27 03:43 UTC, jeremy.butts

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description jeremy.butts 2017-06-08 16:15:01 UTC
ForceUpdateSize does not work on a ListView Cell if the ListView item has a MenuItem. I have only verified this using an IOS device.

Copying the context items from ContextActions and then clearing the ContextActions and adding the copied actions back to ContextActions works; however, the UI starts to hang from repeated calls to ContextActions.Clear().

Comment 1 Jimmy [MSFT] 2017-06-09 21:22:06 UTC
Thank you for filing this report! Could you attach a minimal project that reproduces this issue so we can confirm and look into it? After attaching the project, please set the report's status back to NEW otherwise we may close this issue after 30 days of no response.
Comment 2 jeremy.butts 2017-06-10 18:01:22 UTC
Created attachment 22823 [details]
Dynamic ListView Row Resizing


Added a menu item to the listview. Resizing does not work when the image is tapped.
Comment 3 jeremy.butts 2017-06-10 18:03:28 UTC
Attached project that reproduces the issue.
Comment 4 Paul DiPietro [MSFT] 2017-06-13 13:37:25 UTC
This looks to be fixed as of 2.3.5-pre3; in 2.3.4 the images do not resize when tapped, but do in 2.3.5. Can you please confirm?

In the future, it helps to make certain that any possible issues have not been resolved by one or both of the prerelease or nightly builds.
Comment 5 jeremy.butts 2017-06-27 03:43:16 UTC
Created attachment 23127 [details]
Repeated calls to ForceUpdateSize

Sorry for the delay; I have been busy. UI becomes more unresponsive with each call to ForceUpdateSize. Eventually, the UI hangs. Version is 2.3.5-pre5.
Comment 6 jeremy.butts 2017-06-27 03:44:56 UTC
Sorry for the delay; I have been busy. UI becomes more unresponsive with each call to ForceUpdateSize. Eventually, the UI hangs. Version is 2.3.5-pre5.

See new attachment.  Modified code in the OnImageTapped method.
Comment 7 Paul DiPietro [MSFT] 2017-06-27 12:25:17 UTC
This is different behavior from what was originally reported, but the issue does appear to occur as of the latest nightly build. It takes maybe 5-7 clicks for the behavior to start becoming prominent.
Comment 8 jeremy.butts 2017-06-27 12:35:23 UTC
I can see how this is a separate issue.  Would you like for me to create a separate ticket and then mark this one as resolved?
Comment 9 Paul DiPietro [MSFT] 2017-06-27 13:00:41 UTC
That's fine, and you can refer to the newer behavior being reported in this specific issue.
Comment 10 jeremy.butts 2017-06-27 15:23:52 UTC
Refer to https://bugzilla.xamarin.com/show_bug.cgi?id=57799 regarding the UI becoming unresponsive from repeated calls to ForceUpdateSize.