Bug 23227 - Picker items not displaying in iPad 2 iOS 8.0 Simulator
Summary: Picker items not displaying in iPad 2 iOS 8.0 Simulator
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.2
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jason Smith [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2014-09-21 21:11 UTC by Vlad Efman
Modified: 2014-11-03 08:27 UTC (History)
8 users (show)

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


Attachments
Screenshot of picker bug (54.32 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-09-21 21:11 UTC, Vlad Efman
Details
Test Project (24.27 KB, application/zip)
2014-10-01 16:04 UTC, Jon Goldberger [MSFT]
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 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:
Status:
VERIFIED FIXED

Description Vlad Efman 2014-09-21 21:11:04 UTC
Created attachment 8137 [details]
Screenshot of picker bug

In the iPad2 iOS 8.0 Simulator, the picker view does not display the items when clicked.  It is blank at the bottom with just a Done button.  See screenshot.
Comment 1 Arpit Jha 2014-09-24 04:22:10 UTC
I have checked this issue and unable to reproduce it.

I tried following steps to reproduce it.
1.Create a xamarin form application.
2.Add a class(MYclass.cs) and did some code in it.

public class Myclass:ContentPage
	{
		public Myclass ()
		{
			Picker picker = new Picker
			{
				Title = "PIckerDemo",
				VerticalOptions = LayoutOptions.CenterAndExpand
			};
					
		    picker.Items.Add("Item1");
			picker.Items.Add("Item2");
			picker.Items.Add("Item3");
			picker.Items.Add("Item4");
			picker.Items.Add("Item5");
			picker.Items.Add("Item6");
			picker.Items.Add("Item7");


			// Accomodate iPhone status bar.
			this.Padding = new Thickness(10, Device.OnPlatform(20, 0, 0), 10, 5);

			// Build the page.
			this.Content = new StackLayout
			{
				Children = 
				{

					picker

				}
				};


		}
	}
3.Call Myclass in App.cs
4.Run the application.

I observed that picker is working fine when items select also in ipad2 8.0 simulator.

Let me know if i missed anything to reproduce it.

Screecast regarding same:
http://www.screencast.com/t/FU8vWf6Dy
Environment Info:
=== Xamarin Studio ===

Version 5.4 (build 240)
Installation UUID: 2939b8b4-8977-42bd-82d6-100275ccd9cd
Runtime:
	Mono 3.8.0 ((no/45d0ba1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000009

=== Apple Developer Tools ===

Xcode 6.0.1 (6528)
Build 6A317

=== Xamarin.iOS ===

Version: 8.0.0.62 (Trial Edition)
Hash: 8bd8158
Branch: 
Build date: 2014-09-18 09:12:55-0400

=== Xamarin.Android ===

Version: 4.16.0 (Trial Edition)
Android SDK: /Users/360_macmini/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin.Mac ===

Version: 1.10.0.13 (Starter Edition)

=== Build Information ===

Release ID: 504000240
Git revision: 01786bc67c7024ec33d327ed27e4416d7a846f4e
Build date: 2014-09-17 10:58:48-04
Xamarin addins: 7cd7dfcd6b7b7b53281508954ec080f1cd153ad3

=== Operating System ===

Mac OS X 10.9.4
Darwin 360-MACMINIs-Mac-mini-2.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Comment 3 Jon Goldberger [MSFT] 2014-10-01 16:04:03 UTC
In my tests, this issue occurred only when running on the iPhone 5 iOS 8 simulator but did not occur on others. On my end it did not occur with the iPad 2 simulator. I tested with a couple of different projects and the results were the same. 

I added a test project built from the PickerDemoPage of the FormsGallery project. 

## To reproduce:

1. Open the test project and restore packages. 
2. Set the iOS project as the startup project.
3. Launch to an iPhone 5 iOS 8.0 simulator.
4. Click any of the 3 pickers.

## Expected result

Picker will show items to choose from.

## Actual result

Picker Done button is shown, but no items are in list.
Comment 4 Jon Goldberger [MSFT] 2014-10-01 16:04:24 UTC
Created attachment 8277 [details]
Test Project
Comment 5 Jon Goldberger [MSFT] 2014-10-01 16:06:26 UTC
New info added
Comment 7 Jon Goldberger [MSFT] 2014-10-01 17:20:45 UTC
The cutover noted in private comment 2 relayed to me that on his end this issue occurs on all iOS8 iPhone simulators _except_ the iPhone 4s simulator and the iPad simulators, so to clarify, on his end the issue occurs on iPhone 5 and up simulators.
Comment 8 Jon Goldberger [MSFT] 2014-10-01 17:46:26 UTC
Oops: s/cutover/customer/
Comment 9 rfreschi 2014-10-02 18:35:10 UTC
It is behaving differently today. The action sheet will only pop up high enough to display the pickers' items using a re-sizable iPhone or iPad sim. All others are not working correctly.

Surely a different issue but when building for Android:
I have 4 vertical pickers in a tableview, each with a unique list of items. The top two duplicate themselves lower on the screen, 3 & 4 are not rendered at all. A change in picker 1 also affect it's copy after scrolling down.
Comment 10 rfreschi 2014-10-02 19:05:53 UTC
As a test I removed all tableview elements except two pickers - worked on iOS resizable sims.
After adding back the form elements the problem returned - now in all sims. related to height of tableview?



//Entire Structure:

               void LayoutPage()
		{
			
			var stackLayout = new StackLayout
			{
				Spacing = 10,
				Padding = 10,
				//VerticalOptions = LayoutOptions.Fill,
				Children =
				{
					App.Logo(),
					LayoutTableView()
				}
			};
			var frame = new MyFrame
			{
				Content = stackLayout
			};
			var scrollView = new ScrollView
			{
				VerticalOptions = LayoutOptions.FillAndExpand,
				Content = frame,
			};
						
			this.Padding = new Thickness(10, Device.OnPlatform(10, 10, 10), 10, 0);
			Content = scrollView;
		}


                StackLayout LayoutTableView()
		{
			tableView = new TableView
			{
				HasUnevenRows = true,
				Intent = TableIntent.Data,
				Root = new TableRoot("Provider Search")
				{
					new TableSection("1. Select Plan/Provider Type:")
					{
						//new TextCell(){ Text =  },
						new ViewCell
						{
							Height = 90,
							View = new StackLayout
							{
								Padding = new Thickness(10, 10, 10, 10),
								Children =
								{
									pickerPlanType,
									pickerProvType,
								}
							}
						},
					},
					new TableSection("2. Search for:")
					{
						txtCSZ,
						txtProvname,
						txtProvId,
					},

					new TableSection("Additional filters:")
					{
						new ViewCell
						{
							Height = 90,
							View = new StackLayout
							{
								Padding = new Thickness(10, 10, 10, 10),
								Children =
								{
									pickerLanguages,
									pickerSpecialties,
								}
							}
						},
						new ViewCell
						{
							Height = 100,
							View = new StackLayout
							{
								Padding = new Thickness(15, 15, 15, 20),
								Children =
								{
									new Label{ Text = "Accepting new members:" },
									swtchNewMembers,
								}
							}
						},
						new ViewCell
						{
							Height = 100,
							View = new StackLayout
							{
								Padding = new Thickness(15, 15, 15, 20),
								Children =
								{
									new Label{ Text = "Gender:" },
									segctrlGender
								}
							}
						},
						new TextCell(){ Text = "* = Required" },
					},
					new TableSection("Search by Distance Only:")
					{
						new ViewCell
						{
							Height = 100,
							View = new StackLayout
							{
								Padding = new Thickness(15, 15, 15, 20),
								Children =
								{
									new Label{ Text = "Max Distance:" },
									segctrlMiles,
								}
							}
						},
						new TextCell(){ Text = "(ignore keywords & find providers near me)" },

					}

				}
			};         



			var btnSearch = new MyButton { Text = "Search" };
			btnSearch.Clicked += (sender, args) => DoSearch();

			var stack = new StackLayout
			{
				Spacing = 10, Padding = 5, 
				VerticalOptions = LayoutOptions.Fill,
				Children =
				{
					//new Label{ Text = "above table" },
					tableView,
					btnSearch
				}
			};

			return stack;
		}
Comment 11 Arpit Jha 2014-10-03 03:11:53 UTC
I have checked this issue with latest stable with the help of  Comment 1 and unable to reproduce it.

I observed that Picker  selection working fine .

Screencast reagarding Same:
http://screencast.com/t/7CdGXJfsEs

Environment Info:
=== Xamarin Studio ===

Version 5.4 (build 240)
Installation UUID: 45555ffd-f3f0-4f29-9543-e369d711ab7d
Runtime:
	Mono 3.10.0 ((detached/47db868)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000019

=== Apple Developer Tools ===

Xcode 6.0.1 (6528)
Build 6A317

=== Xamarin.Mac ===

Version: 1.11.0.1 (Starter Edition)

=== Xamarin.Android ===

Version: 4.18.0 (Trial Edition)
Android SDK: /Users/xamarin77/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		3.2    (API level 13)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		4.5    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin.iOS ===

Version: 8.0.0.63 (Trial Edition)
Hash: 58b46df
Branch: 
Build date: 2014-09-18 22:32:07-0400

=== Build Information ===

Release ID: 504000240
Git revision: 01786bc67c7024ec33d327ed27e4416d7a846f4e
Build date: 2014-09-17 10:58:48-04
Xamarin addins: 7cd7dfcd6b7b7b53281508954ec080f1cd153ad3

=== Operating System ===

Mac OS X 10.9.5
Darwin Xamarin77s-Mac-mini.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Comment 13 rfreschi 2014-10-28 18:39:54 UTC
They are all now working in the simulator after the latest Xamarin update, Xcode update, and Yosemite update.

Xamarin Studio
Version 5.5.2 (build 3)
Installation UUID: e44ee3c3-97ed-466c-ba3f-45fea5b1be52
Runtime:
	Mono 3.10.0 ((detached/e204655)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000023

Apple Developer Tools
Xcode 6.1 (6604)
Build 6A1052d

Xamarin.Mac
Version:

Xamarin.Android
Version: 4.18.0 (Enterprise Edition)
Android SDK: /Users/rfreschi/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		4.5    (API level 21)
Java SDK: /usr
No Java runtime present, requesting install.

Xamarin.iOS
Version: 8.4.0.15 (Enterprise Edition)
Hash: 08968c4
Branch: 
Build date: 2014-10-20 21:48:06-0400

Build Information
Release ID: 505020003
Git revision: 6d4c806e383ba366b15fbccca9ddc1ba94f8d5ad
Build date: 2014-10-15 15:00:36-04
Xamarin addins: 069ddd29bb70a42238142eee9bac21a5e4b2f9f9

Operating System
Mac OS X 10.10.0
Darwin training9.hpsj.com 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 14 Jatin 2014-11-03 08:26:56 UTC
I have verified this issue with the latest build and the issue is not reproducible at my end. 

Here is the screencast for the same: http://www.screencast.com/t/ppmWTuo7zP

Also as per the comment #13, I think this issue can be closed. As of now I am closing this issue, please reopen it if this issue exist again with any other future builds.

Build information:

=== Xamarin Studio ===

Version 5.5.3 (build 6)
Installation UUID: ff0c16c6-3c75-46d8-ac56-56c3b56e2c76
Runtime:
	Mono 3.10.0 ((detached/e204655)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000023

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.iOS ===

Version: 8.4.0.16 (Trial Edition)
Hash: 80e9ff7
Branch: 
Build date: 2014-10-22 15:09:12-0400

=== Xamarin.Android ===

Version: 4.18.1 (Indie Edition)
Android SDK: /Users/360_macmini/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		3.2    (API level 13)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		4.5    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin.Mac ===

Version: 1.10.0.18 (Indie Edition)

=== Build Information ===

Release ID: 505030006
Git revision: fbe3e9453daf6a3bb9a9709ed22bec35f7c9056b
Build date: 2014-10-23 13:08:38-04
Xamarin addins: e44add2b39de4dd57c0742bb2e620dfad84c64c6

=== Operating System ===

Mac OS X 10.10.0
Darwin Apples-iMac.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64