-
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
Keyboard overlaps app #38
Comments
I'm not able to reproduce this. Also it seems weird if #31 would actually cause this. The only thing that that PR takes care of, is making sure that the value won't be less than zero. You could easily test and verify if that's really the case for you by removing the |
So maybe I had my own fix in place that now causes the overlap. I'll look into it. But I don't seem to be the only one with the issue: #31 (comment) |
I can't see any issue on my side. The last version that works properly for me is alpha.5. All other versions have issues with either too much or too little safe area inset bottom. But one thing I noticed with all versions: when I open the keyboard, the bottom bar jumps up for "keyboard height + safe area inset bottom" pixels and a brief moment later jumps back to "keyboard height" (which it should be because the keyboard already covers the bottom bar). The same happens the other way round when closing the keyboard. I assume this happens because "safe area inset bottom" takes a noticeable amount of time to be updated updated. EDIT: in alpha.8, this behavior means, that the app bar jumps up "keyboard height" pixels but then jumps back to "keyboard height - safe are inset bottom" (as showed in the screenshots). Other from that, I feel no difference between .5 and .8 (they are both very slow in updating the values). |
@frederikheld I've come cross what I believe is the same issue, but on my end I was able to fix it by setting The description of the bug this property is working around seems to match what's happening here, so maybe it'll work in your case as well? EDIT: Oh, wait, what I didn't notice at first is that now it overcompensates and there's a bunch of extra margin |
Yeah, this is exactly the path I went down as well 😄 There's something broken in this plugin for sure. |
The reason why it worked in alpha.5 is this commit in alpha.6 acfaa0c With I guess if this plugin wanted to support both options it would either need to read the Keyboard plugin's settings, which doesn't sound like a great solution, or somehow find out whether the Keyboard plugin did some resizing and account for that (and I'm not even sure how to go about that) But in both cases there's one more unfortunate bug and that is that custom navbar colours get pushed up EDIT: Now I know of at least one way - instead of adding padding to the decor view, which includes the system bars, it's possible to apply it to the content (incidentally the same view that the capacitor Keyboard plugin resizes when it's set to do that) |
PR looks good, looking forward to it being reviewed and merged into a new version |
Describe the bug
See screenshots.
Left: app without keyboard as reference. App bar aligned with bottom of the viewport plus safe area inset bottom.
Right: open keyboard overlaps app for an amount of pixels that seems to match the safe area inset bottom (see red boxes).
I've tested this with the current
alpha-8
, but it's most probably a regression from PR #31.The text was updated successfully, but these errors were encountered: