mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Fixes #27801: Make the textarea use a proper font size, line height and height to help with the positioning of input pop-ups
This commit is contained in:
parent
2d77f6355a
commit
98cd33b38a
|
@ -454,6 +454,18 @@ export class TextAreaHandler extends ViewPart {
|
|||
}
|
||||
|
||||
// The primary cursor is in the viewport (at least vertically) => place textarea on the cursor
|
||||
|
||||
if (platform.isMacintosh) {
|
||||
// For the popup emoji input, we will make the text area as high as the line height
|
||||
// We will also make the fontSize and lineHeight the correct dimensions to help with the placement of these pickers
|
||||
this._renderInsideEditor(
|
||||
top, left,
|
||||
canUseZeroSizeTextarea ? 0 : 1, this._lineHeight,
|
||||
true
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
this._renderInsideEditor(
|
||||
top, left,
|
||||
canUseZeroSizeTextarea ? 0 : 1, canUseZeroSizeTextarea ? 0 : 1,
|
||||
|
|
Loading…
Reference in a new issue