yatli / fvim

Cross platform Neovim front-end UI, built with F# + Avalonia
MIT License
1.34k stars 30 forks source link

UI display exception #220

Open ayehome opened 2 years ago

ayehome commented 2 years ago

I don't know why. The status bar can't be displayed normally at startup. You need to adjust the window size to display normally 屏幕截图 2022-03-13 211212 屏幕截图 2022-03-13 211235 .

yatli commented 2 years ago

I think I know what's going on... nvim thinks the window is bigger.

ayehome commented 2 years ago

When I put :set guifontwide=Microsoft YaHei:h16, it can be displayed normally。 I think it may be caused by 'fvim' misestimating the font size

yatli commented 2 years ago

Do you see the status line bounce back and forth on startup?

ayehome commented 2 years ago

屏幕截图 2022-03-15 125645

ayehome commented 2 years ago

屏幕截图 2022-03-15 125709 Popup Menu problem remains

yatli commented 2 years ago

could you please try the latest HEAD and run with DEBUG mode? I have enabled debugging layout by default.

ayehome commented 2 years ago

I'm using a new build,0.3.503 I don't know how to start debug mode

yatli commented 2 years ago

Could you try also assign font height to guifont? It's possible that the first few frames are rendered with default font height and hence the instability.

ayehome commented 2 years ago

我试过调整字体大小了,但是这个问题还是存在。实际情况是telescope的 popup 可以正常显示的,只是有个别的nerd font不能显示,但是 folke/which-key.nvim 的popup 不能正常显示。

yatli commented 2 years ago

which-key的问题我在HEAD修复了

ayehome commented 2 years ago

我发现将字体大小设置为:h17以下时,启动时可以正常显示状态栏