BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.07k stars 1.47k forks source link

Boostnote not rendering notes #3319

Open federicochiesa opened 4 years ago

federicochiesa commented 4 years ago

Current behavior

When I get out of editing mode(and sometimes even in editing mode), the note doesn't render correctly, or sometimes doesn't render at all, as you can see here, where it cuts out part of the note (dupe of #3289), or here, where it renders wrong not only the editing mode(wrong highlighting after a split second when I scroll down), but the note doesn't render at all.

Expected behavior

When I get out of the editor I should be able to see my note correctly.

Steps to reproduce

  1. Open a note
  2. Start editing
  3. Get out of editing mode

Environment

duguanyue commented 4 years ago

I have the same issue since updating to v0.13.

Flexo013 commented 4 years ago

Duplicate of #3289

Flexo013 commented 4 years ago

The first bug you mention is indeed a duplicate of #3289.

The second bug however is something that doesn't have an issue here yet, so I'm reopening this one. I have run into this same bug as well in one of my larger notes, but I haven't been able to narrow down what causes the issue.

All I know is that it occurs after a certain point in the document (in my case a level 3 heading). If the cursor is beyond this point then the entire note won't render. If the cursor is before this point then nothing will go wrong.

federicochiesa commented 4 years ago

You're right! I just have to set the cursor in the top line and I can see the note perfectly. At least now I have a temporary fix to see my note, since what I did before was switch to another note and switch back.

Flexo013 commented 4 years ago

@federicochiesa Could you try placing your cursor on a few different points in the note to see at what point the note stops rendering? Maybe that will help in narrowing down the cause.

federicochiesa commented 4 years ago

It seems as if the loewr down I put the cursor, the more the rendered note frame shrinks: if I put it on the top line, the note is fully visible, and as I go down line by line I can see less and less, until I can see nothing

Flexo013 commented 4 years ago

Hmm, maybe this is related to the scrolling bug #3289. Maybe the fix for that also fixes this?