mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
stop emotes from being cut off
This commit is contained in:
parent
8bcd27cedf
commit
11f01947a7
|
@ -157,7 +157,7 @@ void MessageLayoutContainer::breakLine()
|
||||||
int yExtra = 0;
|
int yExtra = 0;
|
||||||
if (isCompactEmote)
|
if (isCompactEmote)
|
||||||
{
|
{
|
||||||
// yExtra = (COMPACT_EMOTES_OFFSET / 2) * this->scale_;
|
yExtra = (COMPACT_EMOTES_OFFSET / 2) * this->scale_;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (element->getCreator().getFlags() &
|
// if (element->getCreator().getFlags() &
|
||||||
|
@ -165,8 +165,7 @@ void MessageLayoutContainer::breakLine()
|
||||||
// {
|
// {
|
||||||
if (element->getRect().height() < this->textLineHeight_)
|
if (element->getRect().height() < this->textLineHeight_)
|
||||||
{
|
{
|
||||||
// yExtra -= (this->textLineHeight_ - element->getRect().height()) /
|
yExtra -= (this->textLineHeight_ - element->getRect().height()) / 2;
|
||||||
// 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
element->setPosition(
|
element->setPosition(
|
||||||
|
|
Loading…
Reference in a new issue