We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74b21eb commit aa8c9f3Copy full SHA for aa8c9f3
src/kioskboard.js
@@ -736,7 +736,7 @@
736
var docTop = window.document.documentElement.scrollTop || 0;
737
var inputThreshold = isPlacementTop ? (theInput.clientHeight + 20) : 50;
738
var theInputOffsetTop = Math.round(inputTop + docTop) - inputThreshold;
739
- var isPaddingTop = theInputOffsetTop < keyboardHeight;
+ var isPaddingTop = (theInputOffsetTop < keyboardHeight) && isPlacementTop;
740
var isPaddingBottom = documentHeight <= (theInputOffsetTop + keyboardHeight);
741
742
if (isPaddingTop || isPaddingBottom) {
0 commit comments