mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-10-29 17:57:07 +00:00
Only position composition view if a cursor is visible
This commit is contained in:
parent
e1c1b07a0b
commit
8074d754d3
@ -259,8 +259,10 @@
|
||||
*/
|
||||
CompositionHelper.prototype.updateCompositionViewPosition = function() {
|
||||
var cursor = this.terminal.element.querySelector('.terminal-cursor');
|
||||
this.compositionView.style.left = cursor.offsetLeft + 'px';
|
||||
this.compositionView.style.top = cursor.offsetTop + 'px';
|
||||
if (cursor) {
|
||||
this.compositionView.style.left = cursor.offsetLeft + 'px';
|
||||
this.compositionView.style.top = cursor.offsetTop + 'px';
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user