summaryrefslogtreecommitdiff
path: root/indra/llui/llemojihelper.cpp
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-10-03 13:54:07 +0200
committerAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-10-03 14:23:38 +0200
commitbe655fef7f1f5717df73dedf84e84b73d246a0ec (patch)
tree525370d04f50287b913b458814909b730db8a883 /indra/llui/llemojihelper.cpp
parentc3adae2a5ff3912ffb741b84a5d098d078da062b (diff)
:x
Diffstat (limited to 'indra/llui/llemojihelper.cpp')
-rw-r--r--indra/llui/llemojihelper.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/llui/llemojihelper.cpp b/indra/llui/llemojihelper.cpp
index 1d7744cb55..9411f7cac5 100644
--- a/indra/llui/llemojihelper.cpp
+++ b/indra/llui/llemojihelper.cpp
@@ -109,11 +109,12 @@ void LLEmojiHelper::showHelper(LLUICtrl* hostctrl_p, S32 local_x, S32 local_y, c
}
LLFloater* pHelperFloater = mHelperHandle.get();
- LLRect rct = pHelperFloater->getRect();
- rct.setLeftTopAndSize(floater_x - HELPER_FLOATER_OFFSET_X, floater_y - HELPER_FLOATER_OFFSET_Y + rct.getHeight(), rct.getWidth(), rct.getHeight());
- pHelperFloater->setRect(rct);
+ LLRect rect = pHelperFloater->getRect();
+ S32 left = floater_x - HELPER_FLOATER_OFFSET_X;
+ S32 top = floater_y - HELPER_FLOATER_OFFSET_Y + rect.getHeight();
+ rect.setLeftTopAndSize(left, top, rect.getWidth(), rect.getHeight());
+ pHelperFloater->setRect(rect);
pHelperFloater->openFloater(LLSD().with("hint", short_code));
- gFloaterView->adjustToFitScreen(pHelperFloater, FALSE);
}
void LLEmojiHelper::hideHelper(const LLUICtrl* ctrl_p)