Fix emoji hitboxes in the emoji history list in the IM floater by ensuring they are left aligned

* Upstream fix PR#4366
master
Hecklezz 2025-07-15 11:34:32 +10:00
parent ee3a84c550
commit 90b8ae9b9e
1 changed files with 1 additions and 0 deletions

View File

@ -468,6 +468,7 @@ void LLPanelEmojiComplete::updateConstraints()
{
mEmojiHeight = mRenderRect.getHeight();
mRenderRect.stretch((mRenderRect.getWidth() - static_cast<S32>(mVisibleEmojis) * mEmojiWidth) / -2, 0);
mRenderRect.translate(-mRenderRect.mLeft, 0); // Left align emojis to fix hitboxes
}
updateScrollPos();