-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Comments
预期行为,有个错别字,菜单不被遮挡,或者css中top是负数时,用户可以有入口,改变top的值 |
确实有这个问题,看看有没有社区的朋友愿意来贡献一下 |
这个什么时间能修复呢,可以给个大概时间嘛 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
右击显示菜单时,菜单内容过高,内容会被遮挡
重现链接
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的值
平台
屏幕截图或视频(可选)
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: