hismailbulut / Neoray

Simple and lightweight GUI client for Neovim
MIT License
148 stars 5 forks source link

0.0.8: window content drawing and size issue on startup #10

Closed andis-sprinkis closed 3 years ago

andis-sprinkis commented 3 years ago

Minor annoyances after launching 0.0.8: Window content is not of correct size or position, remaining buffer area is filled with the theme background color; unless - part of window is randomly placed outside of the screen, then that remaining buffer area is white.

Resizing window fixes it.

image

hismailbulut commented 3 years ago

I couldn't reproduce the issue. What is your neoray config in your init.vim?

andis-sprinkis commented 3 years ago

Only neoray specific logic in config I have is https://github.com/andis-sprinkis/neovim-user-config/blob/5ed218c5a846b9c77d68e1a4cd3d19c320a1faa8/plugin-pre/app/neoray.vim loaded in https://github.com/andis-sprinkis/neovim-user-config/blob/5ed218c5a846b9c77d68e1a4cd3d19c320a1faa8/plugin-pre/app/_init.vim (which is then sourced on runtime in main init.vim)

andis-sprinkis commented 3 years ago

I was able to reproduce the same issue with default Neovim settings. neoray-win64_e0SEtPbiLk

Maybe it has something to do with me using custom display scaling factor of 110%: ApplicationFrameHost_9WwtBYoH5v

andis-sprinkis commented 3 years ago

Confirmed that the content placement issue is not present when setting back to default display scaling factor.

However, if the window spawns slightly off screen (bottom area in the screenshot for window on the right) the blank white buffer content issue for that part still is, so that's a separate problem.

neoray-win64_mhecQzSwkW