Snackbars have wrong anchoring / padding

未关闭
#3,746 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

  • #4521 来自 @mvanhorn —— 已关闭,未合并

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
android, kotlin
领域
mobile

调研方向

按照上述步骤在 wikipedia.org 中重现该问题,然后检查 PR 3680 引入的 snackbar 锚定更改。检查工具栏和键盘的位置及其 padding;当 snackbar 显示在二者上方且间距小而正确,而不是发生重叠或留下键盘高度的 padding 时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

🐞 bug
Steps to reproduce
  1. Open wikipedia.org (just because it has it's own search box that would trigger the keyboard to show)
  2. Long click on a link to open it in a new tab
  3. Tap the website's input box to see the keyboard
Expected behavior
  • The keyboard is shown above the toolbar (Y axis), with a small padding between them
  • The keyboard is shown above the keyboard (Y axis), with a small padding between them
Actual behavior
  • The keyboard is shown on top of the toolbar (Z axis)
  • The keyboard is shown above the keyboard (Y axis), with a hude padding between them (the keyboard height?)
Other details

The bug related to the toolbar anchoring seems like an old issue.
The bug related to the keyboard anchoring seems to have been introduced by https://github.com/mozilla-mobile/reference-browser/pull/3680

Recording of the issue: https://github.com/user-attachments/assets/3bf0a18d-88b3-414f-9899-8c35f1a50507

主要语言
Kotlin
星标
668
派生
198
平均合并
9 小时 58 分钟
30 天内合并 PR
55

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mozilla-mobile/reference-browser 的其他 Issue

查看 mozilla-mobile/reference-browser 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。