Join GitHub today
Text in Note Edit pane is pushed below bottom of the scroll bar by ---------- seperator #667
When I insert seperators into my text using multiple dashes
the size of the scroll area should increase to reflect the new line added.
When adding seperators, the text near the end of the file is pushed down below the scrollable area. The end of the file is hidden, appending new text to the end of the file end up inserting it into the middle, for instance.
Steps to reproduce
Create at text file and insert paragraphs interspersed with --------- elements. Eventually the bug should be reproduced.
Okay here is the bug in action. I was mistaken about the -------- element causing the issue since I didn't use it in this note.
Notice how I can pull text up from the cut-off area beneath the scrollbar using the DEL key to erase carriage returns. The text is there but unaccessible. My present workaround is to modify the text file in a 3rd party editor, save it, and reload it in QOwnNotes.
All the video does is demonstrate that I'm having the issue. The scroll-area is definitely to short for the entirety of the document sometimes. If you've any advice on how I can help you determine the cause, let me know. I don't know why I'd be the only user encountering this problem.
Okay, well I can't give you steps, but I have better-documented the bugs behavior now.
The problem only affects some notes, and then sticks to them.
An affected note has been built up non-linearly. I usually make an outline of headings or single-sentences in sequence and then i go up and down the document fleshing out and elaborations each part. I'm constantly changing the document different parts as I grow kernels into paragraphs into sections reorganizing sections up and down. often i reorganize parts using the of X11 select/middle mouse-click clipboard functionality.
After a while of doing this, I'll eventually notice I can't scroll down all the way to the bottom. I'm suddenly missing the last few paragraphs of my note, and what I've thought I've been sticking at the very bottom has actually been inserted near the bottom, but above the missing text.
I can "fix" it by resizing the Note edit panel. I'll resize the window or drag the handle between the Note edit panel and another panel like the note-list. When the affected note is redrawn with new text-wrapping the scrollbar snaps to its proper position, letting me scroll down to the document's actual bottom. Before I figured that quick fix out, I was constantly using the delete-key to pull text upward from the unscrollable area into the visible bottom.
This resize-fix is temporary. It is undone by changing to another note. Going back to the affected note brings the bug back every time, needing another resize-fix to bring back the bottom. Affect is persistent across closing and opening the program. Although, after dealing with it and continuing work, sometimes a note can just stop being affected.
I finally found the culprit!