showdoc icon indicating copy to clipboard operation
showdoc copied to clipboard

流程图高度问题.

Open xiaolu6t opened this issue 4 years ago • 3 comments

流程图的高度错误,导致多个流程图叠加在一起.

xiaolu6t avatar Nov 15 '20 10:11 xiaolu6t

提供可重现的例子看看

xiaolu6t [email protected] 于2020年11月15日周日 下午6:54写道:

流程图的高度错误,导致多个流程图叠加在一起.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/star7th/showdoc/issues/1162, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQZHLWY5Z4OIDMXNXLFGWLSP6XNFANCNFSM4TWD3LAQ .

star7th avatar Nov 16 '20 03:11 star7th

官方例子可重现,你编辑一下流程图或时序图,预览窗口就会乱掉.原因是流程图和时序图会在SVG中加入position:relative;导致高度失效.chrome会根据流布局重新渲染时,尝试修正这个问题.但是如果宽度不够,会就出现错位.如果要修正这个bug.只需要把你添加的这个css样式去掉就行了.但是我不找到设置option的地方.

xiaolu6t avatar Nov 21 '20 04:11 xiaolu6t

现在翻到这个历史问题。我并不能重现你说的情况。我不知道是不是后面的什么改动修复了此bug,还是说此bug要很特殊情况才能触发。总之我常规的流程图重现不了问题。你可以提供可重现代码。

star7th avatar Apr 21 '21 01:04 star7th