Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be68b41c authored by Tom Ouyang's avatar Tom Ouyang
Browse files

Fix more suggestion window asymmetry bug in N7.

Bug: 7711822
Change-Id: I63ba13b1c160cf55b8820a08e6e28fa666dd2580
parent 1f4f404e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ public class MoreKeysKeyboardView extends KeyboardView implements MoreKeysPanel
        parentView.getLocationInWindow(mCoordinates);
        // Ensure the horizontal position of the panel does not extend past the screen edges.
        final int maxX = parentView.getMeasuredWidth() - container.getMeasuredWidth();
        final int panelX = Math.max(0, Math.min(maxX, x + CoordinateUtils.x(mCoordinates)));
        final int panelX = Math.max(0, Math.min(maxX, x)) + CoordinateUtils.x(mCoordinates);
        final int panelY = y + CoordinateUtils.y(mCoordinates);
        container.setX(panelX);
        container.setY(panelY);