【发布时间】:2019-02-07 18:11:54
【问题描述】:
我正在使用 BalkanGraph 插件,我正在尝试将 orgchart 的第一个父节点对齐到 svg 的顶部而不是它的中心。
我尝试设置一个负的“margin-top”并增加整个 svg 的高度,但随后点击随之而来,并且效果不佳。
我唯一的 CSS 是这样的:
#tree {
width: 100%;
height: 630px;
border: 1px solid lightgray;
background-color: #fff;
}
我在 Orgchart 中使用的是这些:
var chart = new OrgChart(document.getElementById("tree"), {
mouseScroolBehaviour: BALKANGraph.action.zoom,
nodeMouseClickBehaviour: BALKANGraph.action.none,
scaleInitial: BALKANGraph.match.boundary,
collapse: {
level: 2,
allChildren: true
},
});
【问题讨论】:
标签: orgchart