mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-10-30 17:13:08 +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() {
|
CompositionHelper.prototype.updateCompositionViewPosition = function() {
|
||||||
var cursor = this.terminal.element.querySelector('.terminal-cursor');
|
var cursor = this.terminal.element.querySelector('.terminal-cursor');
|
||||||
this.compositionView.style.left = cursor.offsetLeft + 'px';
|
if (cursor) {
|
||||||
this.compositionView.style.top = cursor.offsetTop + 'px';
|
this.compositionView.style.left = cursor.offsetLeft + 'px';
|
||||||
|
this.compositionView.style.top = cursor.offsetTop + 'px';
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user