EXT-7511 FIXED Fixed cropping of selection in Edit Outfit.
Cropping was caused by drawing separator over bottom part of the item (including selection). - Moved separator under the item- not inside of it. This way item and selection are not cropped. The only requirement for using lists that consist of items with separators is that their item_pad attritubute is >= height of separator. Reviewed by Neal Orman at https://codereview.productengine.com/secondlife/r/780/ --HG-- branch : product-enginemaster
parent
39c9ec49bf
commit
051f834a41
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue