Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Resize webview when keyboard is shown#2674

Merged
AndreMiras merged 1 commit intokivy:developfrom
dbnicholson:webview-keyboard-resize
Sep 22, 2022
Merged

Resize webview when keyboard is shown#2674
AndreMiras merged 1 commit intokivy:developfrom
dbnicholson:webview-keyboard-resize

Conversation

Copy link
Contributor

dbnicholson commented Sep 21, 2022

When the adjust mode is unspecified, Android will not resize the webview when showing the on screen keyboard to keep the input element on screen. Explicitly instruct it to use adjustResize mode. Possibly this is because the webview bootstrap uses an AbsoluteLayout as the top level widget. See
https://developer.android.com/guide/topics/manifest/activity-element#wsoft for details.

When the adjust mode is unspecified, Android will not resize the webview
when showing the on screen keyboard to keep the input element on screen.
Explicitly instruct it to use `adjustResize` mode. Possibly this is
because the webview bootstrap uses an `AbsoluteLayout` as the top level
widget. See
https://developer.android.com/guide/topics/manifest/activity-element#wsoft
for details.
Copy link
Contributor Author

dbnicholson commented Sep 21, 2022

Before:

After:

AndreMiras approved these changes Sep 22, 2022
Copy link
Member

AndreMiras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the context and the screenshots

AndreMiras merged commit 698b6c2 into kivy:develop Sep 22, 2022
dbnicholson deleted the webview-keyboard-resize branch September 22, 2022 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

AndreMiras AndreMiras approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants