diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ios.m | 2 | ||||
-rw-r--r-- | src/ui/documentwidget.c | 5 | ||||
-rw-r--r-- | src/ui/util.c | 3 |
3 files changed, 8 insertions, 2 deletions
@@ -759,7 +759,7 @@ void init_SystemTextInput(iSystemTextInput *d, iRect rect, int flags) { | |||
759 | } | 759 | } |
760 | else { | 760 | else { |
761 | UITextView *view = REF_d_view; | 761 | UITextView *view = REF_d_view; |
762 | [view setBackgroundColor:backgroundColor]; | 762 | [view setBackgroundColor:[UIColor colorWithWhite:1.0f alpha:0.0f]]; |
763 | [view setTextColor:textColor]; | 763 | [view setTextColor:textColor]; |
764 | [view setTintColor:tintColor]; | 764 | [view setTintColor:tintColor]; |
765 | [view setEditable:YES]; | 765 | [view setEditable:YES]; |
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 3dadb911..a9a0e07c 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -3204,6 +3204,11 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd) | |||
3204 | else if (equal_Command(cmd, "document.translate") && d == document_App()) { | 3204 | else if (equal_Command(cmd, "document.translate") && d == document_App()) { |
3205 | if (!d->translation) { | 3205 | if (!d->translation) { |
3206 | d->translation = new_Translation(d); | 3206 | d->translation = new_Translation(d); |
3207 | if (isUsingPanelLayout_Mobile()) { | ||
3208 | const iRect safe = safeRect_Root(w->root); | ||
3209 | d->translation->dlg->rect.pos = windowToLocal_Widget(w, zero_I2()); | ||
3210 | d->translation->dlg->rect.size = safe.size; | ||
3211 | } | ||
3207 | } | 3212 | } |
3208 | return iTrue; | 3213 | return iTrue; |
3209 | } | 3214 | } |
diff --git a/src/ui/util.c b/src/ui/util.c index 6e139856..21067bf4 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -1655,7 +1655,8 @@ static void updateValueInputSizing_(iWidget *dlg) { | |||
1655 | } | 1655 | } |
1656 | else { | 1656 | else { |
1657 | dlg->rect.size.x = | 1657 | dlg->rect.size.x = |
1658 | iMin(rootSize.x, iMaxi(iMaxi(100 * gap_UI, title->rect.size.x), prompt->rect.size.x)); | 1658 | iMin(rootSize.x, iMaxi(iMaxi(100 * gap_UI, title ? title->rect.size.x : 0), |
1659 | prompt->rect.size.x)); | ||
1659 | } | 1660 | } |
1660 | /* Adjust the maximum number of visible lines. */ | 1661 | /* Adjust the maximum number of visible lines. */ |
1661 | int footer = 6 * gap_UI; | 1662 | int footer = 6 * gap_UI; |