在Android上当调用showMenu后并且有选择内容时,菜单定位有问题
@MegatronKing is already working on this.
Since Nov 3, 2024.
Assessment
This issue has not been assessed yet.
Description
以下均为示例程序中的代码
步骤:
-
设置toolbarController
-
选择文本,并在ContextMenuControllerImpl中调用showMenu
此时anchors.primaryAnchor的值为Offset(-10000.0, -10000.0),而anchors.secondaryAnchor此时不为null,为正确的值,样例程序中使用了anchors.primaryAnchor会导致菜单定位到屏幕左上角,如果不选择文本仅长按的话,primaryAnchor为(0,0), secondaryAnchor 为null
-
在Android上调用showMenu后,编辑器中选择的文本没有框选背景了,感觉是被抢了焦点?现在我的解决办法是showMenu后延迟一段时间重新对selection进行赋值操作
-
还有就是Android上长按不会自动选择点击所在的文本
- Dominant language
- Dart
- Stars
- 761
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from reqable/re-editor
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
enhancement
-
enhancement
-
bug
All issues in reqable/re-editor
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
code quality good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Suwayomi/Suwayomi-Tsumiru#479 ·
-
Build Failure: agora_rtc_engine compiled against android-31 while dependencies require android-34+ Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
conceptadev/noir#95 ·