EXT-8259 FIXED Fixed occasional truncation of the "More" link in expandable textboxes.
The bug seems to happen when the text contains trailing newlines. So the workaround is to strip those newlines. I use a workaround because a proper fix might require changing LLTextBase which is undesirable at this point. Reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/722/ --HG-- branch : product-enginemaster
parent
96631f6d4e
commit
331ccee1f5
|
|
@ -140,7 +140,13 @@ void LLExpandableTextBox::LLTextBoxEx::setText(const LLStringExplicit& text,cons
|
|||
// LLTextBox::setText will obliterate the expander segment, so make sure
|
||||
// we generate it again by clearing mExpanderVisible
|
||||
mExpanderVisible = false;
|
||||
LLTextEditor::setText(text, input_params);
|
||||
|
||||
// Workaround for EXT-8259: trim text before rendering it.
|
||||
{
|
||||
std::string trimmed_text(text);
|
||||
LLStringUtil::trim(trimmed_text);
|
||||
LLTextEditor::setText(trimmed_text, input_params);
|
||||
}
|
||||
|
||||
// text contents have changed, segments are cleared out
|
||||
// so hide the expander and determine if we need it
|
||||
|
|
|
|||
Loading…
Reference in New Issue