cqroot / joplin-outline

A markdown outline (TOC) sidebar plugin for Joplin.
MIT License
221 stars 19 forks source link

Outline column width resetting every time a new blank note is created in v1.8.3 (Windows) #32

Open DawMatt opened 3 years ago

DawMatt commented 3 years ago

Overview:

Since installing v1.8.3 of Joplin on Windows the Outline plugin has started behaving oddly when creating new blank notes. The Outline column's width resets itself when creating a new blank note and the only way to change this is restart Joplin and reconfigure the application layout again.

Steps to reproduce:

  1. Create test note with at least a level 1 heading
  2. Setup Outline column as the correct width using View -> Change application layout menu item
  3. Duplicate the existing note to create a new note with a different title, but already having some headings in it
  4. Create a new blank note using the Note button or Control + N key, then add a level 1 heading to the note
  5. Try to use View -> Change application layout menu item to restore the original column layout from before

Observed Behaviour

At step 4, the Outline column's width reset to an excessively large value as soon as the new heading was added to the blank note.

At step 5, Change application layout was no longer able to change the width of the Outline column. If you compare screenshots 1 and 5 you will note that the draggable line between Outline and the next column is invisible, and it is no longer possible to position the mouse over that line to drag it back into place. The only way to resolve this is by quitting and restarting Joplin.

Screenshots for each of the steps to reproduce are below.

20210506-step 1 20210506-step 2 20210506-step 3 20210506-step 4 20210506-step 5

Expected Behaviour

At step 4 the Outline column's width should remain the same as it was configured to be.

At step 5 the Change application layout menu item should still be able to control the width of the Outline column.

Context

Tested on a multi-monitor Windows 10 PC.

Joplin details:

Joplin 1.8.3 (prod, win32)

Client ID: f9762fbb0498468db55ba0d460a572d3
Sync Version: 2
Profile Version: 35
Keychain Supported: Yes

Revision: 26a91416c
DawMatt commented 3 years ago

This bug was first noted with v1.1.8 . It seems to have improved with the release of v1.2.0 of the plugin and I'm not sure I've seen an instance of the issue since then. Was v1.2.0 expected to fix this issue?

cqroot commented 3 years ago

The best way now is to try to put the outline panel on the left side of the notes panel. There are many strange problems when the plugin panel is placed on the far right.

DawMatt commented 3 years ago

I do now have this on the left side of my screen, but it does also seem you did something in 1.2.0 that meant this didn't happen as often any more.