Skip to content

Commit 98cd33b

Browse files
committed
Fixes microsoft#27801: Make the textarea use a proper font size, line height and height to help with the positioning of input pop-ups
1 parent 2d77f63 commit 98cd33b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/vs/editor/browser/controller/textAreaHandler.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,18 @@ export class TextAreaHandler extends ViewPart {
454454
}
455455

456456
// The primary cursor is in the viewport (at least vertically) => place textarea on the cursor
457+
458+
if (platform.isMacintosh) {
459+
// For the popup emoji input, we will make the text area as high as the line height
460+
// We will also make the fontSize and lineHeight the correct dimensions to help with the placement of these pickers
461+
this._renderInsideEditor(
462+
top, left,
463+
canUseZeroSizeTextarea ? 0 : 1, this._lineHeight,
464+
true
465+
);
466+
return;
467+
}
468+
457469
this._renderInsideEditor(
458470
top, left,
459471
canUseZeroSizeTextarea ? 0 : 1, canUseZeroSizeTextarea ? 0 : 1,

0 commit comments

Comments
 (0)