Skip to content
Snippets Groups Projects
Commit 051f834a authored by Andrew Dyukov's avatar Andrew Dyukov
Browse files

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-engine
parent 39c9ec49
No related branches found
No related tags found
No related merge requests found
...@@ -96,9 +96,12 @@ void LLPanelInventoryListItemBase::draw() ...@@ -96,9 +96,12 @@ void LLPanelInventoryListItemBase::draw()
if (mSeparatorVisible && mSeparatorImage) 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(); LLRect separator_rect = getLocalRect();
separator_rect.mTop = mSeparatorImage->getHeight(); separator_rect.mTop = separator_rect.mBottom;
separator_rect.mBottom -= mSeparatorImage->getHeight();
mSeparatorImage->draw(separator_rect); mSeparatorImage->draw(separator_rect);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment