Skip to content

Commit 7a67fb9

Browse files
oday-xiexingitee-org
authored andcommitted
fix #I4VZCZ canvas自适应
1 parent 9c16ae6 commit 7a67fb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ export default {
9696
}
9797
// 高亮流程图
9898
await this.highlightDiagram();
99+
const canvas = this.bpmnModeler.get('canvas');
100+
canvas.zoom("fit-viewport", "auto");
99101
} catch (e) {
100102
console.error(e);
101103
// console.error(`[Process Designer Warn]: ${e?.message || e}`);

0 commit comments

Comments
 (0)