Setting the combo size does not take effect #6446
lvsheshamo posted onGitHub
Describe the bug / 问题描述
使用官网例子,设置combo size不生效
import { Graph } from '@antv/g6';
const data = { nodes: [ { id: 'node1', combo: 'combo1', style: { x: 250, y: 150,size:100 } }, { id: 'node2', combo: 'combo1', style: { x: 350, y: 150 } }, { id: 'node3', combo: 'combo2', style: { x: 250, y: 300 } }, ], edges: [], combos: [{ id: 'combo1', combo: 'combo2' }, { id: 'combo2',style:{size:[400,200]} }], };
const graph = new Graph({ container: 'container', data, node: { style: { labelText: (d) => d.id, }, }, combo: { type: 'rect', fixSize:[200,800], style: { padding: 20,
},
}, behaviors: ['drag-element', 'collapse-expand'], });
graph.render();
Reproduction link / 重现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
G6 Version / G6 版本
🆕 5.0.26
Operating System / 操作系统
Windows
Browser / 浏览器
Chrome
Additional context / 补充说明
No response