summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorylistitem.cpp
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-07-23 10:13:11 -0400
committerLoren Shih <seraph@lindenlab.com>2010-07-23 10:13:11 -0400
commit056685d9d4ac82aad45e46ae5d5226690d416513 (patch)
tree7f20ea566ee324303582b83c62530b6fa7d7bf98 /indra/newview/llinventorylistitem.cpp
parent75cfa9a0c3c15e3a472a4c4fd2462402a3a766a0 (diff)
parent77911533dc68731f50f40b18cd44e287df28f476 (diff)
automated merge
Diffstat (limited to 'indra/newview/llinventorylistitem.cpp')
-rw-r--r--indra/newview/llinventorylistitem.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llinventorylistitem.cpp b/indra/newview/llinventorylistitem.cpp
index e4a7a158a3..2546390fcb 100644
--- a/indra/newview/llinventorylistitem.cpp
+++ b/indra/newview/llinventorylistitem.cpp
@@ -96,9 +96,12 @@ void LLPanelInventoryListItemBase::draw()
if (mSeparatorVisible && mSeparatorImage)
{
- // stretch along bottom of listitem, using image height
+ // place under bottom of listitem, using image height
+ // item_pad in list using the item should be >= image height
+ // to avoid cropping of top of the next item.
LLRect separator_rect = getLocalRect();
- separator_rect.mTop = mSeparatorImage->getHeight();
+ separator_rect.mTop = separator_rect.mBottom;
+ separator_rect.mBottom -= mSeparatorImage->getHeight();
mSeparatorImage->draw(separator_rect);
}