mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Only position composition view if a cursor is visible
This commit is contained in:
+4
-2
@@ -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';
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user