Official Plugin Issue: Flowchart Rendering Issue

bug

(James Seigel) #1

Bug report

When I create a note with a flowchart section embedded, the render of the result of the flowchart instructions I put into the block don’t seem to work right unless I open another note and then go back to that one. I have attached at the end a picture showing the poorly rendered version of the note.

Info

  • Platform: (macOS)
  • Platform version: (Mojave/10.14.5)
  • App Version: (4.2.0)

Reproduce

Create a new note
Paste the following in:

st=>start: Start:>http://www.google.com[blank]
e=>end:>http://www.google.com
op1=>operation: My Operation
sub1=>subroutine: My Subroutine
cond=>condition: Yes
or No?:>http://www.google.com
io=>inputoutput: catch something...
	
st->op1->cond
cond(yes)->io->e
cond(no)->sub1(right)->op1

On a Mac type CMD+e to see the rendered version. The image should not look as expected


(Takuya Matsuyama) #2

Hi James,

Thank you for the report.
Confirmed that’s a bug!
The issue happens when the preview is hidden.
It is because the flowchart module is not able to know the viewport size of the preview as it is hidden when rendering a note.
So I will make it render again when toggling the preview.


(Takuya Matsuyama) #3

In v4.3.0, it should work as expected. Thanks for reporting!