We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 145b487 + 886f285 commit 9a90f1fCopy full SHA for 9a90f1f
1 file changed
src/browser/input/CompositionHelper.ts
@@ -222,8 +222,9 @@ export class CompositionHelper {
222
const compositionViewBounds = this._compositionView.getBoundingClientRect();
223
this._textarea.style.left = cursorLeft + 'px';
224
this._textarea.style.top = cursorTop + 'px';
225
- this._textarea.style.width = compositionViewBounds.width + 'px';
226
- this._textarea.style.height = compositionViewBounds.height + 'px';
+ // Ensure the text area is at least 1x1, otherwise certain IMEs may break
+ this._textarea.style.width = Math.max(compositionViewBounds.width, 1) + 'px';
227
+ this._textarea.style.height = Math.max(compositionViewBounds.height, 1) + 'px';
228
this._textarea.style.lineHeight = compositionViewBounds.height + 'px';
229
}
230
0 commit comments