Skip to content
Snippets Groups Projects
Commit fd3e2dc4 authored by Eugene Mutavchi's avatar Eugene Mutavchi
Browse files

Fixed low bug EXT-3890([BSI] someone has said text cutoff when opening and closing user list)

--HG--
branch : product-engine
parent e57ab1e2
No related branches found
No related tags found
No related merge requests found
...@@ -609,3 +609,11 @@ void LLChatHistory::draw() ...@@ -609,3 +609,11 @@ void LLChatHistory::draw()
LLUICtrl::draw(); LLUICtrl::draw();
} }
void LLChatHistory::reshape(S32 width, S32 height, BOOL called_from_parent)
{
bool is_scrolled_to_end = mEditor->scrolledToEnd();
LLUICtrl::reshape( width, height, called_from_parent );
// update scroll
if (is_scrolled_to_end)
mEditor->setCursorAndScrollToEnd();
}
...@@ -119,6 +119,7 @@ class LLChatHistory : public LLUICtrl ...@@ -119,6 +119,7 @@ class LLChatHistory : public LLUICtrl
*/ */
void appendMessage(const LLChat& chat, const bool use_plain_text_chat_history = false, const LLStyle::Params& input_append_params = LLStyle::Params()); void appendMessage(const LLChat& chat, const bool use_plain_text_chat_history = false, const LLStyle::Params& input_append_params = LLStyle::Params());
/*virtual*/ void clear(); /*virtual*/ void clear();
/*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
private: private:
std::string mLastFromName; std::string mLastFromName;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment