summaryrefslogtreecommitdiff
path: root/indra/newview/llpanellogin.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2026-03-20 18:05:42 +0200
committerGitHub <noreply@github.com>2026-03-20 18:05:42 +0200
commita8ba25001039afc5fadc0754c8f811e49b50b7d1 (patch)
treeac12c232d10d6f99fa651e22bbf8d23bf639dd2f /indra/newview/llpanellogin.cpp
parent1bd6893388ed939f3d4628be2b5f00de49350d50 (diff)
#5557 adjust buttons position when hiding grid selector (#5559)
Diffstat (limited to 'indra/newview/llpanellogin.cpp')
-rw-r--r--indra/newview/llpanellogin.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp
index 77de25c28e..6449141b8c 100644
--- a/indra/newview/llpanellogin.cpp
+++ b/indra/newview/llpanellogin.cpp
@@ -242,6 +242,9 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
// change z sort of clickable text to be behind buttons
sendChildToBack(getChildView("forgot_password_text"));
+ mLoginStack = getChild<LLLayoutStack>("login_stack");
+ mGridPanel = getChild<LLLayoutPanel>("grid_panel");
+
std::string current_grid = LLGridManager::getInstance()->getGrid();
if (!mFirstLoginThisInstall)
{
@@ -766,6 +769,7 @@ void LLPanelLogin::updateLocationSelectorsVisibility()
{
grid_txt->setVisible(show_server);
}
+ sInstance->collapseGridPanel(!show_server);
}
}
@@ -1401,3 +1405,13 @@ bool LLPanelLogin::onUpdateNotification(const LLSD& notify)
}
return false;
}
+
+void LLPanelLogin::collapseGridPanel(bool collapse)
+{
+ if (mGridPanel->isCollapsed() == collapse)
+ {
+ return;
+ }
+ mLoginStack->collapsePanel(mGridPanel, collapse);
+ mLoginStack->updateLayout();
+}