File tree Expand file tree Collapse file tree
app/src/main/java/io/github/yawnoc/strokeinput Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -192,11 +192,9 @@ public void onMeasure(
192192 final int heightMeasureSpec
193193 )
194194 {
195- final int paddingHorizontal = getPaddingLeft () + getPaddingRight ();
196- final int paddingVertical = getPaddingTop () + getPaddingBottom ();
197-
198195 final int keyboardWidth ;
199196 final int keyboardHeight ;
197+
200198 if (keyboard == null ) {
201199 keyboardWidth = 0 ;
202200 keyboardHeight = 0 ;
@@ -213,10 +211,7 @@ public void onMeasure(
213211 Keyboard .KEYBOARD_GUTTER_HEIGHT_PX + keyboardHeight
214212 );
215213
216- setMeasuredDimension (
217- keyboardWidth + paddingHorizontal ,
218- keyboardHeight + paddingVertical
219- );
214+ setMeasuredDimension (keyboardWidth , keyboardHeight );
220215 }
221216
222217 @ Override
@@ -436,8 +431,8 @@ private boolean sendSinglePointerMotionEvent(
436431
437432 private boolean onSinglePointerTouchEvent (final MotionEvent motionEvent ) {
438433
439- final int eventX = (int ) motionEvent .getX () - getPaddingLeft () ;
440- final int eventY = (int ) motionEvent .getY () - getPaddingTop () ;
434+ final int eventX = (int ) motionEvent .getX ();
435+ final int eventY = (int ) motionEvent .getY ();
441436
442437 final Keyboard .Key key ;
443438 if (swipeModeIsActivated ) {
You can’t perform that action at this time.
0 commit comments