Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] ContextMenu偏离鼠标点击处 #199

Closed
SQwatermark opened this issue Dec 22, 2023 · 0 comments
Closed

[Bug] ContextMenu偏离鼠标点击处 #199

SQwatermark opened this issue Dec 22, 2023 · 0 comments
Labels
bug Something isn't working or can't work well

Comments

@SQwatermark
Copy link

Describe the bug
以ModernUI为依赖编写模组时,setOnCreateContextMenuListener后,当鼠标位置和顶部之间的距离小于ContextMenu的高度时,右键打开的ContextMenu不在鼠标位置。

To Reproduce
https://github.com/SQwatermark/MuiContextMenuTest
运行后进入世界随便右键一个方块,会打开一个黑色的菜单,这个菜单就是一个带有ContextMenu的View

Screenshots
圈起来的是鼠标点击处

Environment

  • Mod Version: ModernUI-Forge:1.20.2-3.9.0.5
  • Forge Version: 48.1.0
  • Operating System: Windows 10
  • Graphics Card: NVIDIA GeForce RTX 2060
  • Other Mods: 无
@BloCamLimb BloCamLimb added the bug Something isn't working or can't work well label Dec 24, 2023
BloCamLimb added a commit that referenced this issue Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working or can't work well
Projects
None yet
Development

No branches or pull requests

2 participants