summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/mobile-resources.qrc
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-13 14:43:38 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-14 13:39:45 -0700
commit01f1bea995722f6e9934f84d6ac375b30d2a51e4 (patch)
treef148bd24a959b90b27affbfc270dd611e8f2ae21 /mobile-widgets/qml/mobile-resources.qrc
parent85d810119b0716686348390d096af6f1d9c04e16 (diff)
downloadsubsurface-01f1bea995722f6e9934f84d6ac375b30d2a51e4.tar.gz
Mobile: ensure input fields stay visible after keyboard opens
When the user taps on a TextField to enter text, usually the virtual keyboard will pop up. This code tries to ensure that the keyboard doesn't cover the entry field that the user was trying to work on. In order to centralize these changes, this introduces a new SsrfTextField type which we use to also remove a few redundant default settings that we previously had for every field. The one TextArea for the Notes field didn't seem worth creating yet another type for, so there the changes are done directly in DiveDetailsEdit. The awkward timer mechanism is necessary as the keyboard pops up asynchronously and then triggers a change of height for the app, so we need to wait a little bit before doing the adjustment. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/mobile-resources.qrc')
-rw-r--r--mobile-widgets/qml/mobile-resources.qrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qml/mobile-resources.qrc b/mobile-widgets/qml/mobile-resources.qrc
index 3cf536d6d..9cab0f502 100644
--- a/mobile-widgets/qml/mobile-resources.qrc
+++ b/mobile-widgets/qml/mobile-resources.qrc
@@ -21,6 +21,7 @@
<file>SsrfButton.qml</file>
<file>SsrfCheckBox.qml</file>
<file>SsrfSwitch.qml</file>
+ <file>SsrfTextField.qml</file>
<!-- ********** pictures ********** -->
<file>icons/dive.jpg</file>