Xamarin.forms: [Bug] MasterDetail Master width issue.

Created on 21 Aug 2019  路  4Comments  路  Source: xamarin/Xamarin.Forms

Description

Hi Team,

We are using an application that is made up of master detail page, On iOS 13 Beta we found that the master section width of the master detail gets expanded on bringing the application to background and again getting it to foreground after 10 sec.

Steps to Reproduce

  1. Launch the application in landscape mode.
  2. Bring the application to background and wait for 10sec.
  3. Bring the application to foreground, we could notice that the master detail ,master width is expanded.

Expected Behavior

Master detail master section width remains the same on getting the application to background and foreground.

Actual Behavior

Master detail master section width expands on getting the application to background and foreground.

Basic Information

  • Version with issue: iOS 13 Beta 7 and Xamarin Preview 4
  • Last known good version: iOS 12 and Xamarin Previous versions
  • IDE: Visual Studio 8.2.2 (build 44)
  • Platform Target Frameworks:

    • iOS: iOS 13 Beta 7

IMG_0019
IMG_0020

  • Affected Devices: iPad Air 2 iOS 13

Screenshots

Reproduction Link


https://drive.google.com/open?id=1fFpw5p3au2Mbtd3qvEFwvSa6GMwitKW_

iOS 13 iOS 馃崕 bug

All 4 comments

@nadkarninaveen I was unable to get to your reproduction project. It looks like it doesn't exist. What version of Xamarin.Forms are you using? Thanks!

@samhouts Thanks for the quick response
Here is the updated link : https://drive.google.com/file/d/1fFpw5p3au2Mbtd3qvEFwvSa6GMwitKW_/view?usp=sharing
can you please try with this and Xamarin.Forms we are currently using 3.4.0.1008975 but we also checked out that the issue is still present in the latest version of Xamarin.Forms i.e 4.0 .
Thanks
Naveen M Nadkanri

This is an interesting one.

On the iPad Air (and only the iPad Air) when you minimize a split view controller iOS sets the bounds on the MainViewController to a value higher than it should display at. Then when you foreground the app it sets it back to the correct width. Because of some RTL code that we have we pin the width of the master view controller to the heighest width.

I tested this all using xCode as well and I see the same behavior there with a minimal sample. I'm going to log an issue with Apple. In the mean time we'll see if we can work around it if it looks like something that won't be fixed in the final xcode releases

Thanks PureWeen for testing out the issue, currently we have done some work around from the UI side to fix the issue by adding another dummy container and stacking it horizontally in one container and restricting the max preferred width to 320.Thanks for the testing on all platforms and letting us know the specific issue :) Looking forward for fix thanks :)

Regards
Naveen M Nadkarni

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jassmith picture jassmith  路  199Comments

dan5602 picture dan5602  路  124Comments

kingces95 picture kingces95  路  89Comments

jassmith picture jassmith  路  69Comments

juepiezhongren picture juepiezhongren  路  66Comments