Comments (2)
The following patch fixes it:
diff --git a/src/NeovimFrame.html b/src/NeovimFrame.html
index 996b9a7..3f85697 100644
--- a/src/NeovimFrame.html
+++ b/src/NeovimFrame.html
@@ -27,6 +27,7 @@
width: 1ch;
}
</style>
+ <style id="nvim_row_height"></style>
<style id="nvim_highlight_style"></style>
<style id="nvim_cursor_style"></style>
<script type="application/javascript" src="nvimui.js"></script>
diff --git a/src/NeovimFrame.ts b/src/NeovimFrame.ts
index 1f471b3..a52780b 100644
--- a/src/NeovimFrame.ts
+++ b/src/NeovimFrame.ts
@@ -61,10 +61,16 @@ window.addEventListener("load", async () => {
ext_linegrid: true,
rgb: true,
});
+
+ const styleHeight = document.getElementById("nvim_row_height");
window.addEventListener("resize", _ => {
keyHandler.style.left = `0px`;
keyHandler.style.top = `0px`;
const [nCols, nRows] = getGridSize(host);
+ styleHeight.innerText = `.nvim_cell, .nvim_row {
+ height: ${Math.floor(window.innerHeight / nRows)}px;
+ overflow: hidden;
+ }`;
nvim.ui_try_resize(nCols, nRows);
});
But it actually might be better to avoid cropping characters. Things look slightly ugly but they're readable, which is probably what's most important.
from firenvim.
Rendering isn't broken anymore so this was probably a font issue.
from firenvim.
Related Issues (20)
- "Unexpected output. Run nvim --headless and ensure it prints nothing." HOT 5
- Completion menu not correctly cleared, leading to screen corruption. HOT 10
- Is it possible to support firefox mobile? HOT 4
- Add explanation on how to use it with snap / flatpak HOT 1
- Firenvim has started reporting "neovim is not responding" HOT 8
- [Bug] `nvim.exe` process is not killed when closing `Firenvim` `Neovim` instance HOT 4
- Review/update recovery instructions in wiki HOT 1
- [Feature Request] pass eval_js result to lua functions HOT 2
- "TypeError: nvim.call_atomic is not a function" on Nvim HEAD HOT 3
- [feature]: extend `selector`'s behavior to choose elements HOT 2
- Empty lines are sometimes doubled when editing text box in Firefox
- Neovim plugin version (0.2.15) and browser addon version (0.2.16) do not match. HOT 9
- Is there a way to have Google Apps Script autocomplete? HOT 4
- Add table of content to README HOT 1
- Neovim plugin and addon versions do not match HOT 13
- Firenvim not working at all on OSX
- "Neovim died without answering" in Chrome HOT 2
- Odd problem. HOT 11
- Expand textarea as more lines are typed HOT 9
- firenvim temp files restored when nvim opened HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firenvim.