Skip to content
Snippets Groups Projects
Commit 3fd86c2f authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-18871 Debug setting's description is not scrollable

parent 6f522084
No related branches found
No related tags found
No related merge requests found
...@@ -208,7 +208,16 @@ void LLFloaterSettingsDebug::updateControl(LLControlVariable* controlp) ...@@ -208,7 +208,16 @@ void LLFloaterSettingsDebug::updateControl(LLControlVariable* controlp)
getChild<LLTextBox>("setting_name_txt")->setToolTip(controlp->getName()); getChild<LLTextBox>("setting_name_txt")->setToolTip(controlp->getName());
mComment->setVisible(true); mComment->setVisible(true);
mComment->setText(controlp->getComment()); std::string old_text = mComment->getText();
std::string new_text = controlp->getComment();
// Don't setText if not nessesary, it will reset scroll
// This is a debug UI that reads from xml, there might
// be use cases where comment changes, but not the name
if (old_text != new_text)
{
mComment->setText(controlp->getComment());
}
spinner1->setMaxValue(F32_MAX); spinner1->setMaxValue(F32_MAX);
spinner2->setMaxValue(F32_MAX); spinner2->setMaxValue(F32_MAX);
spinner3->setMaxValue(F32_MAX); spinner3->setMaxValue(F32_MAX);
......
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