diff options
| author | richard <none@none> | 2009-11-11 16:47:23 -0800 | 
|---|---|---|
| committer | richard <none@none> | 2009-11-11 16:47:23 -0800 | 
| commit | e3690313a2868d5e7164226e867a4e2ee7a8677e (patch) | |
| tree | fc7bed560716fbd621d4ac7a5b859876250db78b | |
| parent | b7740ee0c540c884170ffacf88132af3f93a3f96 (diff) | |
EXT-2049 - tighten up indentations on inventory
| -rw-r--r-- | indra/newview/llfolderviewitem.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llfolderviewitem.h | 2 | 
2 files changed, 4 insertions, 2 deletions
| diff --git a/indra/newview/llfolderviewitem.cpp b/indra/newview/llfolderviewitem.cpp index 6fdaefd21a..5db35d5f70 100644 --- a/indra/newview/llfolderviewitem.cpp +++ b/indra/newview/llfolderviewitem.cpp @@ -388,7 +388,9 @@ BOOL LLFolderViewItem::addToFolder(LLFolderViewFolder* folder, LLFolderView* roo  // makes sure that this view and it's children are the right size.  S32 LLFolderViewItem::arrange( S32* width, S32* height, S32 filter_generation)  { -	mIndentation = mParentFolder ? mParentFolder->getIndentation() + LEFT_INDENTATION : 0; +	mIndentation = getParentFolder() && getParentFolder()->getParentFolder()  +		? mParentFolder->getIndentation() + LEFT_INDENTATION  +		: 0;  	if (mLabelWidthDirty)  	{  		mLabelWidth = ARROW_SIZE + TEXT_PAD + ICON_WIDTH + ICON_PAD + getLabelFontForStyle(mLabelStyle)->getWidth(mSearchableLabel);  diff --git a/indra/newview/llfolderviewitem.h b/indra/newview/llfolderviewitem.h index 62a4b9a187..7c429fc76e 100644 --- a/indra/newview/llfolderviewitem.h +++ b/indra/newview/llfolderviewitem.h @@ -110,7 +110,7 @@ public:  	// layout constants  	static const S32 LEFT_PAD = 5; -	static const S32 LEFT_INDENTATION = 13; +	static const S32 LEFT_INDENTATION = 8;  	static const S32 ICON_PAD = 2;  	static const S32 ICON_WIDTH = 16;  	static const S32 TEXT_PAD = 1; | 
