Keyboard appearing causes elements to shrink on Y axis #3778
GhostUponAvon
started this conversation in
General
Replies: 1 comment
-
You can use eval to get the screen width and manually calculate the element size as a percentage of that. This seems more like browser behavior than a bug with dioxus, so I'm converting this to a discussion |
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
-
Problem
When the keyboard appears it causes elements that depend on the view port size to shrink on the Y axis. This is only evident from what I can see for elements that depend on parent element heights.
May be a mobile web render specific problem and not necessarily specific to Dioxus: https://stackoverflow.com/questions/39585950/mobile-keyboard-changes-html-viewport-size
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Upon clicking the input field and the keyboard appearing, the button and input field should shrink (because the view port size changes?). This is not too bad, but for more complex styling it starts to negatively effect the UI. Please note: controlled testing was done on an emulator (Pixel 8), but I have observed it affect real devices.
Screenshots
Before (emulator):
After (emulator):
Environment:
Beta Was this translation helpful? Give feedback.
All reactions