diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-10 16:23:24 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-10 16:23:24 +0200 |
commit | 97a3dc5ef8829f744c6191d7c77681c1b2f1a07b (patch) | |
tree | 50895a30f8698fcbea7dfbd6b8d542ebb521d6e4 /src/ios.m | |
parent | ec88d55f71663ef711531c002434d9f55fe885f8 (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.m | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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]; |