Commits

Anonymous committed 3695f61

fixed expandable text box not hiding when clicking off them

  • Participants
  • Parent commits a68057e

Comments (0)

Files changed (2)

File indra/newview/llexpandabletextbox.cpp

 	LLUICtrl::onFocusLost();
 }
 
+void LLExpandableTextBox::onTopLost()
+{
+	collapseTextBox();
+
+	LLUICtrl::onTopLost();
+}
+
 void LLExpandableTextBox::setValue(const LLSD& value)
 {
 	collapseTextBox();

File indra/newview/llexpandabletextbox.h

 	/*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
 	 */
 	/*virtual*/ void draw();