fix(composer-emojis): Adjust width for overflower

This commit is contained in:
Jackie Luo 2016-02-24 20:41:54 -08:00
parent 0553b7bde3
commit 0c320d3a28

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