From e12645e373beb6427796af2917c56f03e56640e8 Mon Sep 17 00:00:00 2001 From: gwigz Date: Sun, 14 Jun 2026 15:42:56 +0100 Subject: [PATCH] Fix first few chars of UUIDs missing in profiles --- indra/llui/lllineeditor.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp index d6b808586e..3ba7dabcca 100644 --- a/indra/llui/lllineeditor.cpp +++ b/indra/llui/lllineeditor.cpp @@ -212,7 +212,9 @@ LLLineEditor::LLLineEditor(const LLLineEditor::Params& p) // clamp text padding to current editor size updateTextPadding(); - setCursor(mText.length()); + + // read-only fields anchor to start, editable ones to end of initial text + setCursor(mReadOnly ? 0 : mText.length()); if (mSpellCheck) { @@ -454,7 +456,16 @@ void LLLineEditor::setText(const LLStringExplicit &new_text, bool use_size_limit // try to preserve insertion point, but deselect text deselect(); } - setCursor(llmin((S32)mText.length(), getCursor())); + + if (mReadOnly) + { + // display field, anchor to start so the value isn't scrolled off + setCursor(0); + } + else + { + setCursor(llmin((S32)mText.length(), getCursor())); + } // Set current history line to end of history. if (mLineHistory.empty())