mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix first line of emotes in emote picker window being shifted.
This commit is contained in:
parent
de4bfad46c
commit
f89ca517ce
|
@ -137,7 +137,9 @@ void MessageLayoutContainer::breakLine()
|
||||||
|
|
||||||
if (this->flags_.has(MessageFlag::Centered) && this->elements_.size() > 0)
|
if (this->flags_.has(MessageFlag::Centered) && this->elements_.size() > 0)
|
||||||
{
|
{
|
||||||
xOffset = (width_ - this->elements_.at(0)->getRect().left() -
|
const int marginOffset = int(this->margin.left * this->scale_) +
|
||||||
|
int(this->margin.right * this->scale_);
|
||||||
|
xOffset = (width_ - marginOffset -
|
||||||
this->elements_.at(this->elements_.size() - 1)
|
this->elements_.at(this->elements_.size() - 1)
|
||||||
->getRect()
|
->getRect()
|
||||||
.right()) /
|
.right()) /
|
||||||
|
|
Loading…
Reference in a new issue