fix(composer-emojis): Adjust width for overflower

This commit is contained in:
Jackie Luo 2016-02-24 20:41:54 -08:00
parent 9d0ebe9423
commit 5a480031f0

View file

@ -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) {