From 5208aa56bd28490084166d0f755ce8d2f0dcd5a2 Mon Sep 17 00:00:00 2001 From: Richard Nelson Date: Thu, 4 Mar 2010 15:27:28 -0800 Subject: fixed expandable text box not hiding when clicking off them --- indra/newview/llexpandabletextbox.cpp | 7 +++++++ indra/newview/llexpandabletextbox.h | 6 ++++++ 2 files changed, 13 insertions(+) (limited to 'indra') diff --git a/indra/newview/llexpandabletextbox.cpp b/indra/newview/llexpandabletextbox.cpp index 9a906d8323..362010d65a 100644 --- a/indra/newview/llexpandabletextbox.cpp +++ b/indra/newview/llexpandabletextbox.cpp @@ -412,6 +412,13 @@ void LLExpandableTextBox::onFocusLost() LLUICtrl::onFocusLost(); } +void LLExpandableTextBox::onTopLost() +{ + collapseTextBox(); + + LLUICtrl::onTopLost(); +} + void LLExpandableTextBox::setValue(const LLSD& value) { collapseTextBox(); diff --git a/indra/newview/llexpandabletextbox.h b/indra/newview/llexpandabletextbox.h index 690c500e84..9d4a8aef76 100644 --- a/indra/newview/llexpandabletextbox.h +++ b/indra/newview/llexpandabletextbox.h @@ -139,6 +139,12 @@ public: */ /*virtual*/ void onFocusLost(); + /** + * Collapses text box on top_lost event + */ + /*virtual*/ void onTopLost(); + + /** * Draws text box, collapses text box if its expanded and its parent's position changed */ -- cgit v1.2.3