ionic-team / ionic-team/capacitor-keyboard

App goes off-screen when FLAG_LAYOUT_NO_LIMITS is set

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3
Forks
21
PR merge metrics
No merged PRs in 30d

Description

## Bug Report

### Plugin(s)
- `@capacitor/keyboard`

### Capacitor Version
```
💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 3.5.1
@capacitor/core: 3.5.1
@capacitor/android: 3.5.1
@capacitor/ios: 3.5.1

Installed Dependencies:

@capacitor/cli: not installed
@capacitor/core: 3.5.1
@capacitor/android: 3.5.1
@capacitor/ios: 3.5.1

[success] iOS looking great! 👌
[success] Android looking great! 👌
```

### Platform(s)
- Android

### Current Behavior
When the flag `FLAG_LAYOUT_NO_LIMITS` is set by another plugin (in my case, to make the navigation bar transparent) AND the `resizeOnFullScreen` option of `@capacitor/keyboard` is set to `true`, it sets the webview of the app to be about 9874px tall (width is, unsurprisingly, unaffected). My actual height is about 700-800px

### Expected Behavior
The WebView should still fit the screen, even if the `FLAG_LAYOUT_NO_LIMITS` is set

### Code Reproduction
https://github.com/codemaster138/cap-screensize-issue-reproduction

### Other Technical Details
/

### Additional Context
/

Contributor guide

Open the contributing guide

Research direction

Start with the @capacitor/keyboard Android implementation and the resizeOnFullScreen handling, then reproduce the issue using the linked cap-screensize-issue-reproduction project. Check how FLAG_LAYOUT_NO_LIMITS affects the WebView height; done means the WebView remains within the screen when both settings are enabled and the Android behavior is covered by an appropriate regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.