From d1b649055dfdfe17674fec6ef713a33c6f9b09fe Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Fri, 5 Apr 2019 22:42:04 +0300 Subject: SL-10890 Ban duration edit field shows value with a left shift if a large value was set --- indra/llui/lllineeditor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra/llui/lllineeditor.cpp') 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(); -- cgit v1.2.3