fix for sim console not staying scrolled to bottom
parent
9634c6a895
commit
9db7d6cb3d
|
|
@ -1597,7 +1597,10 @@ void LLTextBase::setText(const LLStringExplicit &utf8str, const LLStyle::Params&
|
|||
// appendText modifies mCursorPos...
|
||||
appendText(text, false, input_params);
|
||||
// ...so move cursor to top after appending text
|
||||
startOfDoc();
|
||||
if (!mTrackEnd)
|
||||
{
|
||||
startOfDoc();
|
||||
}
|
||||
|
||||
onValueChange(0, getLength());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,11 +55,9 @@ public:
|
|||
/*virtual*/
|
||||
void result(const LLSD& content)
|
||||
{
|
||||
std::string text = mOutput->getText();
|
||||
std::string text = content.asString();
|
||||
text += '\n';
|
||||
text += content.asString();
|
||||
text += '\n';
|
||||
mOutput->setText(text);
|
||||
mOutput->appendText(text, true);
|
||||
};
|
||||
|
||||
LLTextEditor * mOutput;
|
||||
|
|
@ -80,14 +78,13 @@ BOOL LLFloaterRegionDebugConsole::postBuild()
|
|||
void LLFloaterRegionDebugConsole::onInput(LLUICtrl* ctrl, const LLSD& param)
|
||||
{
|
||||
LLLineEditor * input = static_cast<LLLineEditor*>(ctrl);
|
||||
std::string text = mOutput->getText();
|
||||
text += "\n\POST: ";
|
||||
std::string text = "\\POST: ";
|
||||
text += input->getText();
|
||||
mOutput->setText(text);
|
||||
mOutput->appendText(text, true);
|
||||
|
||||
std::string url = gAgent.getRegion()->getCapability("SimConsole");
|
||||
LLHTTPClient::post(url, LLSD(input->getText()), new ::Responder(mOutput));
|
||||
|
||||
input->setText(std::string(""));
|
||||
input->clear();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
width="600">
|
||||
<text_editor
|
||||
left="10"
|
||||
read_only="true"
|
||||
type="string"
|
||||
length="1"
|
||||
follows="left|top|right|bottom"
|
||||
|
|
@ -18,6 +19,7 @@
|
|||
ignore_tab="false"
|
||||
layout="topleft"
|
||||
max_length="65536"
|
||||
track_end="true"
|
||||
name="region_debug_console_output"
|
||||
show_line_numbers="false"
|
||||
word_wrap="true">
|
||||
|
|
|
|||
Loading…
Reference in New Issue