Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit 3d79ee8

Browse files
committed
Fix Entry and Editor cursor position on Android
1 parent e14c0aa commit 3d79ee8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/GraphicsControls/Handlers/Editor/EditorHandler.Android.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ protected override GraphicsEditor CreatePlatformView()
2828
nativeView.SetHorizontallyScrolling(false);
2929

3030
if (Drawable is MaterialEditorDrawable)
31-
nativeView.SetPadding(36, 60, 0, 0);
31+
nativeView.SetPadding(12, 18, 0, 0);
3232
else if (Drawable is FluentEditorDrawable)
33-
nativeView.SetPadding(24, 12, 0, 0);
33+
nativeView.SetPadding(12, 12, 0, 0);
3434
else if (Drawable is CupertinoEditorDrawable)
35-
nativeView.SetPadding(24, 12, 0, 0);
35+
nativeView.SetPadding(12, 12, 0, 0);
3636

3737
DefaultTextColors = nativeView.TextColors;
3838

src/GraphicsControls/Handlers/Entry/EntryHandler.Android.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ protected override GraphicsEntry CreatePlatformView()
2626
};
2727

2828
if (Drawable is MaterialEntryDrawable)
29-
nativeView.SetPadding(36, 60, 0, 0);
29+
nativeView.SetPadding(12, 18, 0, 0);
3030
else if (Drawable is FluentEntryDrawable)
31-
nativeView.SetPadding(24, 12, 0, 0);
31+
nativeView.SetPadding(12, 12, 0, 0);
3232
else if (Drawable is CupertinoEntryDrawable)
33-
nativeView.SetPadding(24, 12, 0, 0);
33+
nativeView.SetPadding(12, 12, 0, 0);
3434

3535
DefaultTextColors = nativeView.TextColors;
3636

0 commit comments

Comments
 (0)