summaryrefslogtreecommitdiff
path: root/indra/llui/lllineeditor.cpp
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2019-04-17 16:45:28 +0300
committerAndreyL ProductEngine <alihatskiy@productengine.com>2019-04-17 16:45:28 +0300
commit459601625d0f2a7b8f5454261fc69e55ce7419e3 (patch)
treeb0502d9722dad46dfac35858b62858150942866c /indra/llui/lllineeditor.cpp
parent19cae5d2ccbefee3741a80b8bc8e486dccf26873 (diff)
parent81dbd3663bdaff741e68de0ec4d4d35bedf6649d (diff)
Merged in lindenlab/viewer-release
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();