rhysd / neovim-component

<neovim-editor> WebComponent to embed Neovim to your app with great ease
https://github.com/rhysd/NyaoVim
MIT License
193 stars 18 forks source link

Fix cursor position #16

Closed romgrk closed 8 years ago

romgrk commented 8 years ago

The cursor has position: absolute; if there are other elements than <neovim-component> on the window, it still appears relative to window origin. (where it should be relative to :host's origin)

By definition absolutely positioned elements are placed relative to the first non-initially positioned parent.

rhysd commented 8 years ago

Ah, nice catch. You're right :+1: (Although I think git rebase prefers to git merge for PR, it's not so much a problem). Thanks.