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

Stencil插件的搜索功能,高度没有自适应 #4092

Open
rcx0113 opened this issue Dec 13, 2023 · 1 comment
Open

Stencil插件的搜索功能,高度没有自适应 #4092

rcx0113 opened this issue Dec 13, 2023 · 1 comment

Comments

@rcx0113
Copy link

rcx0113 commented Dec 13, 2023

Describe the bug

Stencil插件的搜索,设置了 stencilGraphHeight: 0,高度自适应,但是搜索的结果高度没有自适应,有空白区域

Your Example Website or App

https://x6.antv.antgroup.com/zh/examples/showcase/practices/#flowchart

Steps to Reproduce the Bug or Issue

官网流程图案例就可以复现,
const stencil = new Stencil({
title: '流程图',
target: graph,
stencilGraphWidth: 200,
stencilGraphHeight: 0,
collapsable: true,
search(cell, keyword) {
return cell.shape.indexOf(keyword) !== -1
},
groups: [
{
title: '基础流程图',
name: 'group1',
},
{
title: '系统设计图',
name: 'group2',
},
],
layoutOptions: {
columns: 1,
columnWidth: 80,
rowHeight: 55,
},
})

为了明显复现,可以将分组改为
stencil.load([r1, r2, r3, r4, r5, r6], 'group1')
stencil.load([r1, r2, r3, r4,], 'group2')

Expected behavior

理想状态搜索高度页可以子适应,而不是出现一片空白

Screenshots or Videos

image

Platform

  • OS: [e.g. macOS]
  • Browser: [e.g. Chrome]
    "@antv/x6": "^2.15.6",

Additional context

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Dec 13, 2023

👋 @rcx0113

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

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

1 participant