You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We placed a MenuContainerPage with a SlideMenu as a DetailPage inside a MasterDetailPage. When we set MenuOrientation "RightToLeft", the SlideMenu is not visible anymore (LeftToRight is working). We found out, that SlideOverKitiOSHandler sets ScreenHelper.ScreenWidth to the width of the MainScreen (SlideOverKitiOSHandler does that). The SlideMenu is not visible, because it is "offscreen", as the DetailView's width is only about 2/3 the size of the Mainscreen and therefore the slideMenu's display position is far to right.
A solution would be to set ScreenSizeHelper.ScreenWidth to the width of the DetailPage. Unfortunately, the with is always -1. As a workaround, we manually adjust the ScreenWidth in SlideOverKitiOSHandler (in OnElementChanged_Event-Handler ~ line 277):
var parent = (_basePage as ContentPage).Parent as MasterDetailPage; if (parent != null && DeviceIsHorizontal()) { ScreenSizeHelper.ScreenWidth = UIScreen.MainScreen.Bounds.Width * 0.67; //<--magic number workaround / slidemenu is placed to far right, when page is detail-page inside masterdetail-page } else { ScreenSizeHelper.ScreenWidth = UIScreen.MainScreen.Bounds.Width; }
We would be happy, if you could provide a solution for this, so we can use nuget for our iOS -project again :-)
Thank you very much in advance.
The text was updated successfully, but these errors were encountered:
sorry, that my answer took me so long, as i had been assigned to another project.
I modified your slideoverkit-Example-Project "SlideOverKitMoreSamples". Therefore i added a MasterDetailPage, which holds your QuickInnerMenuPage as the DetailPage. Then i modified the MainPage,so that my MasterDetailPage is loaded (instead of the QuickInnerMenuPage).
You can see the described behaviour in this example: Start the attached Project (it should compile and run). On the main menu, select QuickInnerMenu. When you select QuickMenu from Right, you can now see, that the menu is not visible (in fact - it is out of the screen). If you select "Menu from left" or "..from top", you can see the menu.
I assume, that the value, which has been assigned to ScreenHelper.ScreenWidth is to big for this scenario (see description above).
I hope, the example works and helps to comprehend the problem. Thank you very much in advance. I am looking forward hearing from you. SlideOverKit_MasterDetailDemo.zip
We placed a MenuContainerPage with a SlideMenu as a DetailPage inside a MasterDetailPage. When we set MenuOrientation "RightToLeft", the SlideMenu is not visible anymore (LeftToRight is working). We found out, that SlideOverKitiOSHandler sets ScreenHelper.ScreenWidth to the width of the MainScreen (SlideOverKitiOSHandler does that). The SlideMenu is not visible, because it is "offscreen", as the DetailView's width is only about 2/3 the size of the Mainscreen and therefore the slideMenu's display position is far to right.
A solution would be to set ScreenSizeHelper.ScreenWidth to the width of the DetailPage. Unfortunately, the with is always -1. As a workaround, we manually adjust the ScreenWidth in SlideOverKitiOSHandler (in OnElementChanged_Event-Handler ~ line 277):
var parent = (_basePage as ContentPage).Parent as MasterDetailPage;
if (parent != null && DeviceIsHorizontal())
{
ScreenSizeHelper.ScreenWidth = UIScreen.MainScreen.Bounds.Width * 0.67; //<--magic number workaround / slidemenu is placed to far right, when page is detail-page inside masterdetail-page
}
else
{
ScreenSizeHelper.ScreenWidth = UIScreen.MainScreen.Bounds.Width;
}
We would be happy, if you could provide a solution for this, so we can use nuget for our iOS -project again :-)
Thank you very much in advance.
The text was updated successfully, but these errors were encountered: