Fix incorrect vertical position for more keys

This commit is contained in:
Aleksandras Kostarevas 2024-05-07 12:10:48 -05:00
parent 99d5fda170
commit 233e850422

View File

@ -644,7 +644,7 @@ public final class MainKeyboardView extends KeyboardView implements DrawingProxy
// aligned with the bottom edge of the visible part of the key preview.
// {@code mPreviewVisibleOffset} has been set appropriately in
// {@link KeyboardView#showKeyPreview(PointerTracker)}.
final int pointY = key.getY() + mKeyPreviewDrawParams.getVisibleOffset();
final int pointY = key.getY() + mKeyPreviewDrawParams.getVisibleOffset() + key.getHeight();
moreKeysKeyboardView.showMoreKeysPanel(this, this, pointX, pointY, mKeyboardActionListener);
return moreKeysKeyboardView;
}