summaryrefslogtreecommitdiff
path: root/src/ios.m
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-10 16:23:24 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-10 16:23:24 +0200
commit97a3dc5ef8829f744c6191d7c77681c1b2f1a07b (patch)
tree50895a30f8698fcbea7dfbd6b8d542ebb521d6e4 /src/ios.m
parentec88d55f71663ef711531c002434d9f55fe885f8 (diff)
iOS: Extra padding at bottom of upload text editor
Long multiline editors should have a fair bit of overscroll at the bottom, as long as it doesn't affect the normal expanding editors.
Diffstat (limited to 'src/ios.m')
-rw-r--r--src/ios.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ios.m b/src/ios.m
index 43d7ec69..c9e843e4 100644
--- a/src/ios.m
+++ b/src/ios.m
@@ -771,6 +771,9 @@ void init_SystemTextInput(iSystemTextInput *d, iRect rect, int flags) {
771 [view setBackgroundColor:[UIColor colorWithWhite:1.0f alpha:0.0f]]; 771 [view setBackgroundColor:[UIColor colorWithWhite:1.0f alpha:0.0f]];
772 [view setTextColor:textColor]; 772 [view setTextColor:textColor];
773 [view setTintColor:tintColor]; 773 [view setTintColor:tintColor];
774 if (flags & extraPadding_SystemTextInputFlag) {
775 [view setContentInset:(UIEdgeInsets){ 0, 0, 3 * gap_UI / get_Window()->pixelRatio, 0}];
776 }
774 [view setEditable:YES]; 777 [view setEditable:YES];
775 [view setDelegate:appState_]; 778 [view setDelegate:appState_];
776 [view becomeFirstResponder]; 779 [view becomeFirstResponder];