summaryrefslogtreecommitdiff
path: root/indra/llui/llview.cpp
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2020-01-09 20:54:36 +0200
committerandreykproductengine <andreykproductengine@lindenlab.com>2020-01-09 20:54:36 +0200
commit941c1ee7f8a0446937c37ba6ce31503a0c360d50 (patch)
treee1800566b4a8fdec80962c56892888a57f95fa7a /indra/llui/llview.cpp
parent7633285f9a8a2908e596df3316d025c0fb64a73e (diff)
SL-11172 Scroll to focused object if object is not in visible area
Diffstat (limited to 'indra/llui/llview.cpp')
-rw-r--r--indra/llui/llview.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llui/llview.cpp b/indra/llui/llview.cpp
index b0e346f513..aa64b2c16e 100644
--- a/indra/llui/llview.cpp
+++ b/indra/llui/llview.cpp
@@ -641,6 +641,16 @@ void LLView::onVisibilityChange ( BOOL new_visibility )
}
// virtual
+void LLView::onChildGotFocus(const LLUICtrl * cntrl)
+{
+ LLView* parent_view = getParent();
+ if (parent_view)
+ {
+ parent_view->onChildGotFocus(cntrl);
+ }
+}
+
+// virtual
void LLView::translate(S32 x, S32 y)
{
mRect.translate(x, y);