summaryrefslogtreecommitdiff
path: root/android/app/src/main/AndroidManifest.xml
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-08-29 21:22:36 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-08-29 21:22:36 +0000
commit533d89befd1fe4b8134440e8d415d40a5fb7c04b (patch)
tree87cfa6f3d70679cc385d3c7120162c644aa0487d /android/app/src/main/AndroidManifest.xml
parent5c659d9046add8c77bd7699961a910505dcb4bc2 (diff)
Fix web quick-add keyboard viewport bug and shopping-mode add scroll jump
DashboardActivity (the WebView-wrapped web dashboard) had no windowSoftInputMode override, unlike QuickAddActivity which already sets adjustResize|stateVisible for the same class of problem: without it, Android WebViews default to adjustPan, which shifts the whole page up behind the keyboard instead of resizing the viewport, pushing a centered `position: fixed` modal's input out of reach when the keyboard opens. shopping-mode.html's fixed-bottom quick-add bar called a plain .focus() on the item-name input right after the item list above it grew by one row. The browser's default scroll-into-view for that focus call was computed against the now-taller document and dragged the whole page to the bottom instead of leaving the always-visible fixed bar alone. preventScroll: true stops that. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018AwnALZL6bD4VBtATDVv3B
Diffstat (limited to 'android/app/src/main/AndroidManifest.xml')
-rw-r--r--android/app/src/main/AndroidManifest.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 58a6062..6795fb6 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -41,7 +41,8 @@
<activity
android:name=".ui.DashboardActivity"
android:exported="true"
- android:theme="@style/Theme.Dashboard">
+ android:theme="@style/Theme.Dashboard"
+ android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />