diff options
| -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);  | 
