Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup renders behind the Android navigationbar #11

Open
jaison-t-john opened this issue Apr 24, 2024 · 4 comments
Open

Popup renders behind the Android navigationbar #11

jaison-t-john opened this issue Apr 24, 2024 · 4 comments

Comments

@jaison-t-john
Copy link

jaison-t-john commented Apr 24, 2024

@microspaze I have customised the sample project available to make the popup page have verticaloptions as End. This makes the page render behind the device navigation menu bar in Android
image

@microspaze
Copy link
Owner

You can try to hide the system bottom navigation bar when page poped-up.

            _loginPopup = new LoginPopupPage();
            _loginPopup.Loaded += (sender, args) =>
            {
                #if ANDROID
                //Hide bottom navigation bar when page poped-up 
                if (sender is PopupPage { Handler.PlatformView: Android.Views.View { Parent: Android.Widget.FrameLayout decorView } })
                {
                    var uiFlags = Android.Views.SystemUiFlags.LayoutStable | Android.Views.SystemUiFlags.HideNavigation;
                    decorView.SystemUiVisibility = (Android.Views.StatusBarVisibility) uiFlags;
                }
                #endif
            };

I have add the demo code to the sample project by commit: 701132a

@microspaze
Copy link
Owner

20240424_180354.mp4

@jaison-t-john
Copy link
Author

jaison-t-john commented Apr 24, 2024

@microspaze Thanks for the quick turnaround. But I have a usecase of having multiple popups in my app, So it wont be a good idea to hide the system nav bar multiple times. Can we have something like using safe area for ios..

@microspaze
Copy link
Owner

@jaison-t-john You can try the latest version 1.0.9. It includes some fix about this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants