summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-10-26 02:01:11 +0300
committerGitHub <noreply@github.com>2023-10-26 02:01:11 +0300
commit272da5c01abd84f5e39ac3396e4e10ebe73b40b0 (patch)
tree4c7c6bf5ff986a46ab2ac7be76a62c41f7819ef7 /indra/llui
parent29dd53310ad35f297ea10c9a73745298d214a7d5 (diff)
SL-20401 FIXED Popping out conversation floater second time moves location
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llfloater.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp
index 2303cd24b7..c67db54ea6 100644
--- a/indra/llui/llfloater.cpp
+++ b/indra/llui/llfloater.cpp
@@ -1772,6 +1772,8 @@ void LLFloater::onClickTearOff(LLFloater* self)
{
if (self->mSaveRect)
{
+ LLRect screen_rect = self->calcScreenRect();
+ self->mPosition = LLCoordGL(screen_rect.getCenterX(), screen_rect.getCenterY()).convert();
self->storeRectControl();
}
self->setMinimized(FALSE); // to reenable minimize button if it was minimized