shuzijun / markdown-editor

IntelliJ Platform A full-featured WYSIWYG editor for markdown
https://plugins.jetbrains.com/plugin/17254-markdown-editor
Apache License 2.0
155 stars 35 forks source link

Menu bar disappears #72

Closed winston-zillow closed 1 year ago

winston-zillow commented 1 year ago

It is unclear what steps can reproduce this problem, but I encountered it twice after using it for an hour. I had to restart Intellij IDEA and the menu bar reappear after restarting.

Screen Shot 2022-10-07 at 3 34 45 PM

If I just close the editor tab and reopen, the menu bar area shows up without the icons.

Screen Shot 2022-10-07 at 3 40 12 PM
shuzijun commented 1 year ago

Right-click menu, open the console, check for errors。 image

image
winston-zillow commented 1 year ago

I saw one error but I don't think it relates to this problem because the error is there as soon as I open the markdown file and the menu bar is showing:

2index.min.js?_ijt=bi9sfgng8p27749iirdk7jh9m2:1 Uncaught TypeError: Cannot read properties of null (reading 'classList')
    at index.min.js?_ijt=bi9sfgng8p27749iirdk7jh9m2:1:237981
    at NodeList.forEach (<anonymous>)
    at e.addCaret (index.min.js?_ijt=bi9sfgng8p27749iirdk7jh9m2:1:237939)
    at e.addToUndoStack (index.min.js?_ijt=bi9sfgng8p27749iirdk7jh9m2:1:235590)
    at index.min.js?_ijt=bi9sfgng8p27749iirdk7jh9m2:1:177274

however, I found easy to reproduce steps:

  1. open a markdown file, seeing the menu bar
  2. go to some other files such as .py files
  3. go back to the markdown editor tab
  4. now the menu bar is mostly hidden
  5. close the markdown file
  6. open the markdown file again and the menu bar reappears
shuzijun commented 1 year ago

This problem has been reproduced. The status bar is obscured because the size of the editor has changed, trying to fix it.