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

menu高度过高,显示会被遮挡 #4806

Closed
Tina75 opened this issue Aug 10, 2023 · 5 comments
Closed

menu高度过高,显示会被遮挡 #4806

Tina75 opened this issue Aug 10, 2023 · 5 comments

Comments

@Tina75
Copy link

Tina75 commented Aug 10, 2023

问题描述

右击显示菜单时,菜单内容过高,内容会被遮挡

重现链接

https://g6.antv.antgroup.com/examples/tool/contextMenu/#contextMenu

重现步骤

1、进入页面
2、getContent方法,让Li多显示几条,例:如下
getContent(evt) {
let header;
if (evt.target && evt.target.isCanvas && evt.target.isCanvas()) {
header = 'Canvas ContextMenu';
} else if (evt.item) {
const itemType = evt.item.getType();
header = ${itemType.toUpperCase()} ContextMenu;
}
return <h3>${header}</h3> <ul> <li title='1'>li 1</li> <li title='2'>li 2</li> <li>li 3</li> <li>li 4</li> <li>li 5</li> <li title='1'>li 1</li> <li title='2'>li 2</li> <li>li 3</li> <li>li 4</li> <li>li 5</li> <li title='1'>li 1</li> <li title='2'>li 2</li> <li>li 3</li> <li>li 4</li> <li>li 5</li> <li title='1'>li 1</li> <li title='2'>li 2</li> <li>li 3</li> <li>li 4</li> <li>li 5</li> </ul>;
},
3、右键显示菜单,每个节点都右键试一下,基本上是必现的

预期行为

菜单不被遮挡,或者css中top是负数时,用户可以有入口,改变tup的值

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

image

补充说明(可选)

No response

@Tina75
Copy link
Author

Tina75 commented Aug 10, 2023

预期行为,有个错别字,菜单不被遮挡,或者css中top是负数时,用户可以有入口,改变top的值

@Yanyan-Wang
Copy link
Contributor

确实有这个问题,看看有没有社区的朋友愿意来贡献一下

@Tina75
Copy link
Author

Tina75 commented Sep 7, 2023

确实有这个问题,看看有没有社区的朋友愿意来贡献一下

这个什么时间能修复呢,可以给个大概时间嘛

@hipi
Copy link
Contributor

hipi commented Sep 8, 2023

#4942

@Yanyan-Wang
Copy link
Contributor

@hipi 牛哇,已经合并并发版:v4.8.22 @Tina75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants