Replies: 1 comment
-
Okay, so I've got something working fairly well with I suppose I could hook into the screen dimensions and calculate the exact center if I want to. Is this the right way to approach it, or is there a simpler way to do this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to have a modal that's centered, but which the keyboard would slightly occlude. The way I got my modal into the center was by applying a maxHeight to it.
I have
avoidKeyboard
enabled, but it shifts my entire model into the large part of the screen (on Android, seemingly regardless of ifavoidKeyboard
is enabled), instead of keeping the modal centered but having it get squashed a bit.tl;dr; I want to keep the modal in the absolute screen center, and just have the bottom part of it that would be covered move up, without the top of the modal moving up or the modal shifting its position. Can I do this?
Beta Was this translation helpful? Give feedback.
All reactions