diff options
| author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2023-03-19 05:07:44 +0100 | 
|---|---|---|
| committer | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2023-03-19 05:08:04 +0100 | 
| commit | f5adfae1ade864d80f630855bc65bf65f5ae7ece (patch) | |
| tree | c0345967c74f6aeeb0876cb7cee908afc1863336 | |
| parent | d2a8a3bd53f011b7137717ece39f01b5242bb45a (diff) | |
SL-19099 The long name of the item is out of bounds on the Editing Tools/Content tab
| -rw-r--r-- | indra/llui/llfolderviewitem.cpp | 2 | ||||
| -rw-r--r-- | indra/llui/llpanel.h | 1 | ||||
| -rw-r--r-- | indra/newview/llpanelobjectinventory.cpp | 3 | 
3 files changed, 4 insertions, 2 deletions
diff --git a/indra/llui/llfolderviewitem.cpp b/indra/llui/llfolderviewitem.cpp index eba93beed9..e2b5279aab 100644 --- a/indra/llui/llfolderviewitem.cpp +++ b/indra/llui/llfolderviewitem.cpp @@ -395,7 +395,7 @@ S32 LLFolderViewItem::arrange( S32* width, S32* height )              // it is purely visual, so it is fine to do at our laisure              refreshSuffix();          } -		mLabelWidth = getLabelXPos() + getLabelFontForStyle(mLabelStyle)->getWidth(mLabel) + getLabelFontForStyle(mLabelStyle)->getWidth(mLabelSuffix) + mLabelPaddingRight;  +		mLabelWidth = getLabelXPos() + getLabelFontForStyle(mLabelStyle)->getWidth(mLabel) + getLabelFontForStyle(mLabelStyle)->getWidth(mLabelSuffix) + mLabelPaddingRight;  		mLabelWidthDirty = false;  	} diff --git a/indra/llui/llpanel.h b/indra/llui/llpanel.h index b8f47ef6ba..8018365d3e 100644 --- a/indra/llui/llpanel.h +++ b/indra/llui/llpanel.h @@ -127,6 +127,7 @@ public:  	virtual 	void	clearCtrls(); // overridden in LLPanelObject and LLPanelVolume  	// Border controls +	const LLViewBorder* getBorder() const { return mBorder; }  	void addBorder( LLViewBorder::Params p);  	void addBorder();  	void			removeBorder(); diff --git a/indra/newview/llpanelobjectinventory.cpp b/indra/newview/llpanelobjectinventory.cpp index bd40c9dd2b..6a82a3b35d 100644 --- a/indra/newview/llpanelobjectinventory.cpp +++ b/indra/newview/llpanelobjectinventory.cpp @@ -1368,7 +1368,8 @@ void LLPanelObjectInventory::reset()  		LLEditMenuHandler::gEditMenuHandler = mFolders;  	} -	LLRect scroller_rect(0, getRect().getHeight(), getRect().getWidth(), 0); +	int offset = hasBorder() ? getBorder()->getBorderWidth() << 1 : 0; +	LLRect scroller_rect(0, getRect().getHeight() - offset, getRect().getWidth() - offset, 0);  	LLScrollContainer::Params scroll_p;  	scroll_p.name("task inventory scroller");  	scroll_p.rect(scroller_rect);  | 
