mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(composer-emojis): Adjust width for overflower
This commit is contained in:
parent
9d0ebe9423
commit
5a480031f0
1 changed files with 2 additions and 1 deletions
|
@ -171,8 +171,9 @@ class EmojisComposerExtension extends ContenteditableExtension {
|
|||
maxLength = emojiOption.length;
|
||||
}
|
||||
}
|
||||
// TODO: Calculate width of words more accurately for a closer fit.
|
||||
const WIDTH_PER_CHAR = 8;
|
||||
return (maxLength + 8) * WIDTH_PER_CHAR;
|
||||
return (maxLength + 10) * WIDTH_PER_CHAR;
|
||||
}
|
||||
|
||||
static _emojiPickerHeight(emojiOptions) {
|
||||
|
|
Loading…
Reference in a new issue