xiota / geany-preview

Turns Geany into a markdown editor by providing a preview pane in the sidebar to show the formatting of several light-weight languages as they are edited. Supported document types include AsciiDoc, DocBook, Fountain, HTML, LaTeX, Markdown, MediaWiki, reStructuredText, Textile, and Txt2Tags.
GNU General Public License v3.0
14 stars 0 forks source link

Graphical glitch when using a shortcut that disables the editor and that extends the Preview-tab #61

Open ralf3u opened 1 week ago

ralf3u commented 1 week ago

Description When using some shortcuts of switch-views of geanylua (Toggle editor 1, Toggle editor 2 and both Switch Views), then one can see the scrollbar of the Preview-tab for a part of a second somewhere else. If for example the sidebar is on the right side, and if the widths of editor and sidebar are about 3:1 (see image 1), then, after having pressed the shortcut Toggle editor 1, the sidebar is moving to the left side (see image 2), so that the scrollbar of the Preview-tab is more on the left side, and then the content expands to the right side (see image 3). The images are screenshots from a video that I did with a digital camera.

image 1 editor-sidebar

image 2 graphical_glitch

image 3 afterwards

Possible explication The graphical glitch does not appear in the tab Documents of the sidebar when the plugin Preview is deactivated in the list of the Plugin Manager. So, it could be that the webbrowser component of the Preview-tab loads slowly.

History This issue is based on the knowledge of https://github.com/xiota/geanylua-scripts/issues/9.

System Lubuntu 24.04 Geany 2.0

xiota commented 1 week ago

Most likely not much I can do about this. Problem seems to be related to rendering speed of the webview. Widgets probably aren't meant to be repeatedly shown and hidden.

Will leave issue open in case some solution or workaround is found.