Skip to content

IME表示中の編集画面の余白を修正 / Fix Free Flick editor double IME padding - #1349

Merged
KazumaProject merged 1 commit into
devfrom
codex/free-flick-insets-visible-ime
Nov 15, 2026
Merged

KazumaProject merged 1 commit into
devfrom
codex/free-flick-insets-visible-ime

Conversation

@KazumaProject

Copy link
Copy Markdown
Owner

日本語

検索でIMEを表示したままフリーフリック編集画面へ移ると、Androidが縮めた表示領域にIMEの余白を重ねて適用し、保存ボタンが大きく上へ移動していました。API 35で再現したケースでは、編集領域の下端がすでに1540pxなのに797pxの余白を追加し、保存ボタンの下端が722pxになっていました。

API 30以降では、編集領域の実際の位置とウィンドウ・IMEの境界から、まだ隠れる部分だけを余白にします。レイアウト後にも再計算し、重み付きのスクロール領域を次のレイアウトで再配置します。API 24–29は既存の計算を維持します。

検証: 修正前は自アプリIMEの縦画面で3件中2件が失敗し、修正後は3件とも成功。Gboardの縦横画面・3ボタン横画面、自アプリIMEの3ボタン縦画面・文字サイズ1.3倍でも各3件が成功し、計18件。関連ユニットテスト2件も成功。API 24–29および実機は未確認です。

残る制約: このAPI 35エミュレーターの横画面(2400×1080px)で自アプリIMEを高さ220dpで表示すると、ツールバーとIMEにより編集領域が0になり、操作性テスト2件が失敗しました。IMEそのものの高さ制約は、この余白修正では解消していません。成功条件と混同しないため記録します。画像・検証ログはリポジトリ外に保存しています。

English

Entering the Free Flick editor while search already shows the IME could apply IME padding to a window already resized by Android. On API 35, the content already ended at 1540px but received another 797px of padding, placing the Save button's bottom at 722px.

On API 30+, compute only the remaining overlap from the editor's actual bounds and the window/IME boundary. Recalculate after layout and update the weighted scroll area on the next layout pass. Retain the existing calculation on API 24–29.

Validation: two of three own-IME portrait UI tests failed before the fix; all three passed afterward. Another fifteen tests passed across Gboard portrait/landscape, Gboard three-button landscape, own-IME three-button portrait and 1.3× font scale. Two related unit tests passed. Physical devices and API 24–29 remain unverified.

Known separate limitation: on this API 35 emulator at 2400×1080px, a 220dp own-IME layout leaves zero editor space below the toolbar; two interaction tests fail in that configuration. This padding fix does not resolve the IME height constraint.

@KazumaProject
KazumaProject merged commit f4e2d9d into dev Nov 15, 2026
1 check passed
@KazumaProject
KazumaProject deleted the codex/free-flick-insets-visible-ime branch November 15, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant