furcan/KioskBoard

[BUG] - Autoscroll not happening

Closed this issue · 1 comments

Describe the bug

Under special circumstances the keyboard covers the input and the window is not scrolled to make the input visible even though autoscroll is turned on.

E.g.:
window size: 1024x768
keyboardsize: 1024x540

theInput.getBoundingClientRect()
DOMRect {x: 239, y: 238, width: 546, height: 54, top: 238, …}
bottom: 292
height: 54
left: 239
right: 785
top: 238
width: 546
x: 239
y: 238

Screenshots

image
image