diff options
-rw-r--r-- | src/gui/npcdialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 1859329ab..6f4fcc037 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -74,8 +74,9 @@ NpcDialog::NpcDialog(int npcId) mItemLinkHandler = new ItemLinkHandler; // Setup output text box - mTextBox = new BrowserBox; + mTextBox = new BrowserBox(BrowserBox::AUTO_WRAP); mTextBox->setOpaque(false); + mTextBox->setMaxRow((int) config.getIntValue("ChatLogLength")); mTextBox->setLinkHandler(mItemLinkHandler); mScrollArea = new ScrollArea(mTextBox); |