summaryrefslogtreecommitdiff
path: root/indra/llui/lllineeditor.cpp
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2019-04-05 22:42:04 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2019-04-05 22:42:04 +0300
commitd1b649055dfdfe17674fec6ef713a33c6f9b09fe (patch)
treedd9c07421742fb1009937f3dadb64665749640fc /indra/llui/lllineeditor.cpp
parent64341c8b1907f8526b93a6b3d3d124924d44c2d9 (diff)
SL-10890 Ban duration edit field shows value with a left shift if a large value was set
Diffstat (limited to 'indra/llui/lllineeditor.cpp')
-rw-r--r--indra/llui/lllineeditor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp
index cfab6b7fc8..ff8bf30319 100644
--- a/indra/llui/lllineeditor.cpp
+++ b/indra/llui/lllineeditor.cpp
@@ -499,6 +499,13 @@ void LLLineEditor::setCursorToEnd()
deselect();
}
+void LLLineEditor::resetScrollPosition()
+{
+ mScrollHPos = 0;
+ // make sure cursor says in visible range
+ setCursor(getCursor());
+}
+
BOOL LLLineEditor::canDeselect() const
{
return hasSelection();