[bug] body bottom padding doesn't get removed when using shared virtual keyboard
See original GitHub issueDescription
Bottom padding CSS gets added to the HTML body element, when opening a virtual keyboard and is removed when closing the keyboard. However, when using a shared keyboard across multiple fields, it doesn’t seem to detect the keyboard being closed and keeps adding to the padding each time a keyboard is opened.
Steps to Reproduce
Can be reproduced with basic implementation of shared keyboard:
import * as Mathlive from 'mathlive'
const app = document.querySelector('#app')
const mathfields = [
new Mathlive.MathfieldElement({ keyboardMode: 'onfocus' }),
new Mathlive.MathfieldElement({ keyboardMode: 'onfocus' }),
new Mathlive.MathfieldElement({ keyboardMode: 'onfocus' })
]
mathfields.forEach(f => app.appendChild(f))
Mathlive.makeSharedVirtualKeyboard({})
OR
- Go to https://mathlive-shared-keyboard.vercel.app/
- Focus on fields a couple of times to open keyboard
- Inspect the HTML body style attribute
Actual Behavior
The padding style in HTML body piles up.
Expected Behavior
It should not pile up, padding should be removed each time a keyboard is closed.
Environment
0.76.1
Browser [Chrome}
Issue Analytics
- State:
- Created a year ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
When the keyboard appears, the Flutter widgets resize. How ...
Updated Answer. resizeToAvoidBottomPadding is now deprecated. The updated solution is to set resizeToAvoidBottomInset property to false .
Read more >[v4] BottomSheetScrollView causes extra padding to appear
Using a combination of BottomSheetModal , BottomSheetScrollView and BottomSheetTextInput with keyboardBehavior set to interactive will result in extra padding/ ...
Read more >HTML, CSS & JavaScript Tutorial (Project Video) - YouTube
In this video we'll be creating a virtual keyboard using pure HTML, CSS & JavaScript (no libraries required). This is done from scratch...
Read more >10 Most Common Bootstrap Mistakes That Developers Make
Common Bootstrap Mistake #6: File input button component problem. Bootstrap doesn't have a designated component for a file upload button. A simple and...
Read more >Why does samsung keyboard suck so much? - Reddit
Ive recently tried using it instead of google keyboard because it just integrates better in terms of authentics.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@arnog the idea was to add/remove a
div
placeholder invirtualKeyboardContainer
instead of changing the itspadding-button
but I realized that the content ofvirtualKeyboardContainer
can be also changed - so, not a good idea.@arnog Great I will close the PR then. Thank you!