nextcloud / text

📑 Collaborative document editing using Markdown
GNU Affero General Public License v3.0
552 stars 91 forks source link

Opening a long markdown document scrolls the view to the bottom #4792

Closed Pointedstick closed 1 year ago

Pointedstick commented 1 year ago

Describe the bug When opening a text document, the view is scrolled down to the bottom. This is annoying for frequently-updated documents where new content is prepended to the top, not appended to the bottom.

To Reproduce Steps to reproduce the behavior:

  1. Create a .md markdown document and enter a large amount of text into it, enough to make it scrollable
  2. Close the document
  3. Open it again

Expected behavior The view is showing the beginning of the file.

Server details:

Client details:

juliusknorr commented 1 year ago

Which exact version are you running? This should have been fixed in the latest 27 release by https://github.com/nextcloud/text/pull/4544

juliusknorr commented 1 year ago

One additional thought, if you just paste the long text the cursor might be left at the end when closing the document so then it would still be restored to the very end.

Pointedstick commented 1 year ago

We are using version 27. Is it fixed in a bugfix release?

juliusknorr commented 1 year ago

Yes, it should be there since 27.0.1

Pointedstick commented 1 year ago

Indeed, we have just upgraded to that version and I can confirm the issue is resolved now. Thanks so much!