daledesilva / obsidian_ink

Other
417 stars 10 forks source link

strange behaviors when resize the window #55

Open Ariestar opened 3 months ago

Ariestar commented 3 months ago

Describe the bug There are several bugs after resizing the obsidian window(i.e. the original split window function in Windows). (screenshot shown as below).

  1. According to my usage, whenever I wrote on a new line, there will be an extra line generated below, right? But when I resize the window, it seems that sometimes it will generate space less than a single line. And if I refullscreen the obsidian window, it will generate space more than a single line, and the previous hidden part doesn't have lines
  2. After pinning the obsidian to the left/right, the width won't adaptively update, so the right part of the canvas won't show
  3. After pinning the obsidian to the left/right, sometimes the stroke will be thinner(I guess the stroke width is calculated somehow by the width and height of the window), and the second bug won't appear.

Video or screenshots image image https://github.com/daledesilva/obsidian_ink/assets/47706741/4eb3dfd5-a57f-4015-a3b6-7db5d0c81c37

Desktop (please complete the following information):

Additional context Interestingly, when I create a new writing section, all the stuff will be back to normal and no related bugs still exist.

Ariestar commented 3 months ago

click the link in my previous comment to download the bug video which shows the bug. It may be too long to play directly.😢

daledesilva commented 3 months ago

This is related to #52

daledesilva commented 2 months ago

I was just testing this and was able to replicate it. However, I'm not going to fix it for a while as there are other priorities. To mitigate it, know that it only occurs while you're in edit more for that section. So if it occurs, simply lock and unlock the section and it will correct itself.

Thanks for reporting and for the clear video! I'll fix it in the future when I get a chance.