-
Notifications
You must be signed in to change notification settings - Fork 18
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
Windowed Modal not reaching bottom of screen #15
Comments
hi @mukaschultze , |
No ETA at the moment, PRs are welcome in case anyone knows how to fix it. |
What errors occur? This file has some working TS examples of how to use Also, nativescript-material-bottomsheet might be a better alternative to a bottom aligned modal. |
@Firetrip I couldn't reproduce the issue, the modal sticks to the bottom as it should both on a real device and in the emulator. In what devices you observed that behavior? |
It is a Xiaomi Mi 9. Maybe it is because of the cuved bottom of the screen |
Indeed, I just tried on an older phone with software buttons, which the Mi 9 does not have (it uses gestures) and the modal reaches the bottom |
I found this occuring when the modal was not set to fullscreen, I put up a PR that resolves this for Android. |
@Firetrip I found a workaround for this issue using the combination of fullscreen: false and stretched: false in the ExtendedShowModalOptions object. Let me know if it works to you as well |
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
Create a non fullscreen modal with the following code. Use verticalPosition="bottom". The modal will not stick to the very bottom of the screen. There will be some space in between.
I tried with the current version and with @next but the result is the same.
I am unable to use ExtendedShowModalOptions, as this will lead to some errors. I registered the plugin in main.ts with the following code:
And here is the code to reproduce the issuse:
Here is a screenshot with layout markes enabled:
The text was updated successfully, but these errors were encountered: