Bug 30363 - DatePicker does not update layout during orientation change
Summary: DatePicker does not update layout during orientation change
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.4.3
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Rui Marinho
Depends on:
Reported: 2015-05-22 12:48 UTC by Mike
Modified: 2015-10-07 11:38 UTC (History)
5 users (show)

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

Repro (282.30 KB, application/x-zip-compressed)
2015-05-22 16:22 UTC, Chris King
layout issue images (68.72 KB, application/x-zip-compressed)
2015-05-22 16:33 UTC, Mike

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 Mike 2015-05-22 12:48:11 UTC
Tested on Nexus 7 tablet

Steps to reproduce:
1. Hold device in a portrait layout.
2. Tap a DatePicker to open the dialog.
3. Rotate device to a landscape layout.
4. Dialog remains in a portrait layout.

Dialog changes from using the portrait layout to using the landscape layout.

The DatePicker uses the correct layout when the dialog isn't open during an orientation change.
Comment 1 Chris King 2015-05-22 16:22:09 UTC
Created attachment 11301 [details]
Comment 2 Chris King 2015-05-22 16:23:07 UTC
I cannot reproduce the issue on the latest version of Forms on a Nexus tablet. If you are still seeing the issue please attach a reproduction and I'll try again.

Warm regards,
Xamarin Forms Team
Comment 3 Mike 2015-05-22 16:33:27 UTC
Created attachment 11302 [details]
layout issue images

I was able to reproduce the issue.  See the attachment for images.
Comment 4 Mike 2015-05-22 16:56:37 UTC
Chris - I used the project you attached to reproduce.

I'm running android 5.0.2 on the Nexus 7.  The issue also exists on a Nexus 9 running android 5.0.1
Comment 5 Mike 2015-07-02 15:36:48 UTC
Changing status to confirmed.
Comment 6 Paul DiPietro [MSFT] 2015-07-31 11:00:02 UTC
This appears to occur specifically on Lollipop; emulators reflect this bug as well and it was also replicated on an S5 which is presently running it.
Comment 7 Jason Smith [MSFT] 2015-09-02 02:04:56 UTC
Should be fixed in 1.5.1-pre1
Comment 8 Parmendra Kumar 2015-10-07 11:38:55 UTC
I have checked this issue with Xamarin.Forms 1.5.1-pre1 and its working fine.\

Hence closing this issue.