mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #210 from Tyriar/209_hide_textarea_when_not_composing
Hide textarea off-screen when not composing
This commit is contained in:
+5
-3
@@ -303,6 +303,9 @@
|
||||
* IME helper dialog is positioned correctly).
|
||||
*/
|
||||
CompositionHelper.prototype.updateCompositionElements = function() {
|
||||
if (!this.isComposing) {
|
||||
return;
|
||||
}
|
||||
var cursor = this.terminal.element.querySelector('.terminal-cursor');
|
||||
if (cursor) {
|
||||
this.compositionView.style.left = cursor.offsetLeft + 'px';
|
||||
@@ -317,11 +320,10 @@
|
||||
* @private
|
||||
*/
|
||||
CompositionHelper.prototype.clearTextareaPosition = function() {
|
||||
this.textarea.style.left = undefined;
|
||||
this.textarea.style.top = undefined;
|
||||
this.textarea.style.left = '';
|
||||
this.textarea.style.top = '';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* States
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user