From 37f777e230215aeba0ee6eba149cff7b64d7ed0d Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 20 Oct 2019 14:17:18 +0400 Subject: [PATCH] Attempt to fix emoji layout in the InputField. --- ui/widgets/input_fields.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/input_fields.cpp b/ui/widgets/input_fields.cpp index b7a136a..8ad10f0 100644 --- a/ui/widgets/input_fields.cpp +++ b/ui/widgets/input_fields.cpp @@ -622,7 +622,7 @@ QTextImageFormat PrepareEmojiFormat(EmojiPtr emoji, const QFont &font) { result.setWidth(width / factor); result.setHeight(height / factor); result.setName(emoji->toUrl()); - result.setVerticalAlignment(QTextCharFormat::AlignBaseline); + result.setVerticalAlignment(QTextCharFormat::AlignBottom); return result; }