From e06c322971aeba9a065efb6f53139010243aa428 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Wed, 8 Feb 2023 17:43:49 +0200 Subject: SL-19134 Multiline description field --- indra/newview/llsidepaneliteminfo.cpp | 4 ++-- .../newview/skins/default/xui/en/sidepanel_item_info.xml | 16 ++++++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/indra/newview/llsidepaneliteminfo.cpp b/indra/newview/llsidepaneliteminfo.cpp index 2402827ca0..ccc57c63ab 100644 --- a/indra/newview/llsidepaneliteminfo.cpp +++ b/indra/newview/llsidepaneliteminfo.cpp @@ -46,6 +46,7 @@ #include "lllineeditor.h" #include "llradiogroup.h" #include "llslurl.h" +#include "lltexteditor.h" #include "llviewercontrol.h" #include "llviewerinventory.h" #include "llviewerobjectlist.h" @@ -158,7 +159,6 @@ BOOL LLSidepanelItemInfo::postBuild() getChild("LabelItemName")->setPrevalidate(&LLTextValidate::validateASCIIPrintableNoPipe); getChild("LabelItemName")->setCommitCallback(boost::bind(&LLSidepanelItemInfo::onCommitName,this)); - getChild("LabelItemDesc")->setPrevalidate(&LLTextValidate::validateASCIIPrintableNoPipe); getChild("LabelItemDesc")->setCommitCallback(boost::bind(&LLSidepanelItemInfo:: onCommitDescription, this)); // acquired date // owner permissions @@ -909,7 +909,7 @@ void LLSidepanelItemInfo::onCommitDescription() LLViewerInventoryItem* item = findItem(); if(!item) return; - LLLineEditor* labelItemDesc = getChild("LabelItemDesc"); + LLTextEditor* labelItemDesc = getChild("LabelItemDesc"); if(!labelItemDesc) { return; diff --git a/indra/newview/skins/default/xui/en/sidepanel_item_info.xml b/indra/newview/skins/default/xui/en/sidepanel_item_info.xml index 7fb9fb828d..8b0f8f7550 100644 --- a/indra/newview/skins/default/xui/en/sidepanel_item_info.xml +++ b/indra/newview/skins/default/xui/en/sidepanel_item_info.xml @@ -183,7 +183,7 @@ TestString PleaseIgnore name="layout_item_description" layout="topleft" follows="all" - height="61"> + height="84"> Description: - - +