summaryrefslogtreecommitdiff
path: root/src/ui
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/ui
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/ui')
-rw-r--r--src/ui/inputwidget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c
index 22f983eb..18c0c20c 100644
--- a/src/ui/inputwidget.c
+++ b/src/ui/inputwidget.c
@@ -1179,7 +1179,9 @@ void begin_InputWidget(iInputWidget *d) {
1179 (d->maxWrapLines > 1 ? multiLine_SystemTextInputFlags : 0) | 1179 (d->maxWrapLines > 1 ? multiLine_SystemTextInputFlags : 0) |
1180 (d->inFlags & isUrl_InputWidgetFlag ? (disableAutocorrect_SystemTextInputFlag | 1180 (d->inFlags & isUrl_InputWidgetFlag ? (disableAutocorrect_SystemTextInputFlag |
1181 disableAutocapitalize_SystemTextInputFlag) : 0) | 1181 disableAutocapitalize_SystemTextInputFlag) : 0) |
1182 /* widget-specific tweaks (hacks) */
1182 (!cmp_String(id_Widget(w), "url") ? returnGo_SystemTextInputFlags : 0) | 1183 (!cmp_String(id_Widget(w), "url") ? returnGo_SystemTextInputFlags : 0) |
1184 (!cmp_String(id_Widget(w), "upload.text") ? extraPadding_SystemTextInputFlag : 0) |
1183 (flags_Widget(w) & alignRight_WidgetFlag ? alignRight_SystemTextInputFlag : 0) | 1185 (flags_Widget(w) & alignRight_WidgetFlag ? alignRight_SystemTextInputFlag : 0) |
1184 (isAllowedToInsertNewline_InputWidget_(d) ? insertNewlines_SystemTextInputFlag : 0) | 1186 (isAllowedToInsertNewline_InputWidget_(d) ? insertNewlines_SystemTextInputFlag : 0) |
1185 (d->inFlags & selectAllOnFocus_InputWidgetFlag ? selectAll_SystemTextInputFlags : 0)); 1187 (d->inFlags & selectAllOnFocus_InputWidgetFlag ? selectAll_SystemTextInputFlags : 0));