gyf-dev / gyf-dev/ImmersionBar

titleBarMarginTop 键盘计算高度有问题

Open
#438 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
11.5k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

使用titleBarMarginTop,并且keyboardEnable为true。onGlobalLayout计算高度的时候视乎忽略了getStatusBarHeight高度,导致键盘高度计算不正确

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the onGlobalLayout keyboard-height calculation used when titleBarMarginTop and keyboardEnable are enabled, then inspect how getStatusBarHeight is accounted for. Reproduce the incorrect keyboard height with a soft keyboard and verify that the calculated value handles the status bar height correctly.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.