summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-12 21:00:44 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-12 21:00:44 +0300
commit0e7060d5306fef1f585982cc78223250d3ee8551 (patch)
treed21bb496f85cd275707db85ebac17e7e5f2a9adf /src/ui/util.c
parent12262e7642489f1764018ef23b4913c203ddd9ab (diff)
Mobile: Better Settings tap targets; fixed safe area drawing
Diffstat (limited to 'src/ui/util.c')
-rw-r--r--src/ui/util.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index 05d39c01..48ed41a6 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -1349,10 +1349,17 @@ iWidget *makeValueInput_Widget(iWidget *parent, const iString *initialValue, con
1349 2))); 1349 2)));
1350// finalizeSheet_Mobile(dlg); 1350// finalizeSheet_Mobile(dlg);
1351 arrange_Widget(dlg); 1351 arrange_Widget(dlg);
1352 setupSheetTransition_Mobile(dlg, incoming_TransitionFlag | top_TransitionDir);
1353 if (parent) { 1352 if (parent) {
1354 setFocus_Widget(as_Widget(input)); 1353 setFocus_Widget(as_Widget(input));
1355 } 1354 }
1355 /* Check that the top is in the safe area. */ {
1356 int top = top_Rect(bounds_Widget(dlg));
1357 int delta = top - top_Rect(safeRect_Root(dlg->root));
1358 if (delta < 0) {
1359 dlg->rect.pos.y -= delta;
1360 }
1361 }
1362 setupSheetTransition_Mobile(dlg, incoming_TransitionFlag | top_TransitionDir);
1356 return dlg; 1363 return dlg;
1357} 1364}
1358 1365