Wrapping a Page with an SfSchedule control in NavigationPage() breaks orientation

Hi, I've been experiencing an issue with SfSchedule when changing orientation from portrait to landscape. 

I have narrowed the problem down to Schedule not working correctly if wrapped in a NavigationPage 

Here is an part of the code: 

In App.xaml.cs: 
 public void SetMainPage()
   {
         ...            
         MainPage =  new NavigationPage(new MySfSchedulePage());          //issue is here
   }

MySfSchedulePage:

    public class MySfSchedulePage : ContentPage
    {
        public MySfSchedulePage()
        {
            this.Content = new SfSchedule();
        }
    }

Here is how it appears in landscape: 


As seen from the date, it looks like its showing part of today (9/01) and part of tomorrow (10/01). 

If I do not wrap the control in NavigationPage and set the page directly, it works OK - however, this is not an option for me. 

If I change day it fixes the problem, so it looks like an initial 'draw' for the new orientation. 

7 Replies

SG Swathi Gopal Syncfusion Team January 10, 2018 11:13 AM UTC

Hi Ben, 
  
Thank you for contacting Syncfusion support. 
  
We have checked with the mentioned issue and we are able to reproduce the issue with Schedule added in Navigation page, not rendered properly when orientation changed in Xamarin Forms Android.We have logged issue report for the same and will include this issue fix in our upcoming Volume 1 main release, which is expected to be available in the mid of month February 2018.We appreciate your patience until then. 
  
Regards, 
Swathi G 



AN Anton November 16, 2018 01:47 PM UTC

Hello, month view has the same issue now. NavigationPage broke view on portrait to landscape rotation.


VR Vigneshkumar Ramasamy Syncfusion Team November 19, 2018 11:49 AM UTC

Hi Anton,  
  
Thanks for contacting Syncfusion support,  
  
We have tested the reported issue “Schedule month view broke up when placed in navigation page and rotating the device” and it works fine from our side, we have tested this in Xamarin.Forms.Android and Xamarin.Forms.iOS as well and we have tested by adding schedule inside a stacklayout too and it works fine in all the scenarios. we have prepared a simple sample for the same, and attached the video for the same, please find the sample below.  
  
Sample: ScheduleMonth  
  
Please modify the sample to reproduce the issue, and share us the replication procedure, which helps us to analyze and resolve this.  
  
Regards,  
Vigneshkumar R 



AN Anton November 19, 2018 06:44 PM UTC

Oh yes, ok. Problem seems not in navigationPage.
In sample I try NavigationPage - TabbedPage - ContentPage. Now it broken.
Maybe problem in tabbedPage..
Sample attached.

Now in portrait (seems ok):


In landscape (thu, fri..?):


Attachment: ScheduleShow_b9369590.rar


VR Vigneshkumar Ramasamy Syncfusion Team November 20, 2018 06:59 AM UTC

Hi Anton,  
  
Thanks for the update,  
  
We are able to reproduce the reported issue “Schedule rows and columns collapsed after rotating, while place schedule inside Navigation page of TabbedPage which placed inside NavigationPagewe have logged an issue report for the same, and it will be implemented in our upcoming Volume 4 release, which is expected to roll out at the end of December, 2018. We appreciate your patience until then.  
  
Regards,  
Vigneshkumar R 



AN Anton November 21, 2018 06:14 PM UTC

Thank you! But.. one more thing.
Rotation breaks opened inline tasks (also without navigationPage, in sample MainPage = new ScheduleShow.MainPage();)

1. Start app. Portrait, tap day. Looks good.


2. Go landscape (broken).


3. Back to portrait (broken now).


Sample attached.

Attachment: ScheduleShow_b9369590_1_405f3b4d.rar


VR Vigneshkumar Ramasamy Syncfusion Team November 22, 2018 06:06 AM UTC

Hi Anton,  
  
Thanks for the update,  
  
Query 1: Rotation breaks the opened inline view appointments  
We have checked this issue and it’s the behavior of schedule, schedule month view arranged based on the available space and hence the inline view size shrinks in the landscape view, you can manage this by adjusting the ViewHeader height of schedule in the landscape mode, we have prepared a simple sample for the same please find the sample below.  
  
Query 2: Opened inline view time labels doesn’t arranged properly while rotating the device in both landscape and portrait mode  
We are able to reproduce this issue and we have logged an issue report for the same, and it will be implemented in our upcoming Volume 4 release, which is expected to roll out at the end of December, 2018. We appreciate your patience until then.    
  
Sample: ScheduleShow  
  
Please revert us if you have any concern.  
  
Regards, 
Vigneshkumar R 


Loader.
Up arrow icon