Bug 48237 - ContextAction menu is automatically dismissed when rotating from portrait to landscape mode in a Xamarin.Forms application on iOS.
Summary: ContextAction menu is automatically dismissed when rotating from portrait to ...
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-11-28 20:14 UTC by Mike Smith
Modified: 2017-06-19 18:01 UTC (History)
13 users (show)

Tags: ac
Is this bug a regression?: No
Last known good build:


Attachments
Screenshots demonstrating issue (103.59 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-11-28 20:14 UTC, Mike Smith
Details


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 for Bug 48237 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Mike Smith 2016-11-28 20:14:07 UTC
Created attachment 18700 [details]
Screenshots demonstrating issue

=== Overview ===
ContextAction menu is automatically dismissed when rotating from portrait to landscape mode in a Xamarin.Forms application on iOS.

=== Background ===
If there is an iOS ContextAction menu open while the phone is rotated, it seems to work correctly when rotating from from landscape to portrait mode but when rotating from portrait to landscape mode it is automatically dismissed. When rotating from landscape to portrait mode, the ContextAction menu remains open.

=== Steps to Reproduce  ===

	1. Download and build this project: 
	https://developer.xamarin.com/samples/xamarin-forms/UserInterface/ListView/interactivity/ 
	2. Place device in portrait mode
	3. Swipe left-to-right to open ContextAction menu
	4. Rotate device from portrait to landscape
	
=== Expected Behavior ===

ContextAction menu should remain open

=== Actual Behavior ===

ContextAction menu automatically closes

=== Build Information ===

Microsoft Visual Studio Enterprise 2015
Version 14.0.25421.03 Update 3
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

Visual Basic 2015   00322-80000-00000-AA822
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA822
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA822
Microsoft Visual C++ 2015

Visual F# 2015   00322-80000-00000-AA822
Microsoft Visual F# 2015

Microsoft .NET Core Tools (Preview 2)   14.1.20907.0
Microsoft .NET Core Tools (Preview 2)

Xamarin   4.2.1.62 (680125b)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.0.2.37 (ce955cc)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.2.1.5 (44931ae)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2016-11-28 20:26:16 UTC
## Quick first glance from non-engineering team

This might be an implementation detail or bug in how _Xamarin.Forms_ implements the UI elements involved.  It would be slightly more surprising (though perhaps still possible) that _Xamarin.iOS's_ binding layer over the native iOS context menu is causing the problem.
Comment 2 Timothy Risi 2016-11-30 01:21:58 UTC
This does look to be a Xamarin.Forms issue.  I loaded up the TableEditing sample for Xamarin.iOS and the contextaction stays visible while rotating, while I see the same behavior of it disappearing if I run the Interactivity sample in Forms.
Comment 3 adrianknight89 2016-11-30 21:43:55 UTC
I can confirm this is an XF issue. I saw it when I was fixing another bug last night.
Comment 4 adrianknight89 2016-12-01 07:14:33 UTC
See https://github.com/xamarin/Xamarin.Forms/pull/584
Comment 5 Samantha Houts [MSFT] 2017-06-19 18:01:44 UTC
PR was closed. Moving back to Confirmed status.