Use correct .terminal-cursor for composition view
This commit is contained in:
+1
-1
@@ -259,7 +259,7 @@
|
|||||||
* Updates the composition view's position.
|
* Updates the composition view's position.
|
||||||
*/
|
*/
|
||||||
CompositionHelper.prototype.updateCompositionViewPosition = function() {
|
CompositionHelper.prototype.updateCompositionViewPosition = function() {
|
||||||
var cursor = document.querySelector('.terminal-cursor');
|
var cursor = this.terminal.element.querySelector('.terminal-cursor');
|
||||||
term.compositionView.style.left = cursor.offsetLeft + 'px';
|
term.compositionView.style.left = cursor.offsetLeft + 'px';
|
||||||
term.compositionView.style.top = cursor.offsetTop + 'px';
|
term.compositionView.style.top = cursor.offsetTop + 'px';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user