diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2020-02-12 17:50:49 +0200 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2020-02-12 17:50:49 +0200 |
commit | c81aa53e7bd8570da82e1794a8b50eb74a3d1bee (patch) | |
tree | 4080a84b51c6edad0699bba0c973a68bb87bc76b /indra/llui | |
parent | b9f0eb54ce1a95adb0286302e977936ef8ed91d7 (diff) |
SL-12695 FIXED 'New' badges are not shown for some folders after resizing 'Received items' panel
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/llbadgeowner.cpp | 8 | ||||
-rw-r--r-- | indra/llui/llbadgeowner.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/indra/llui/llbadgeowner.cpp b/indra/llui/llbadgeowner.cpp index 0557cd4375..5f11c383ef 100644 --- a/indra/llui/llbadgeowner.cpp +++ b/indra/llui/llbadgeowner.cpp @@ -56,6 +56,14 @@ void LLBadgeOwner::initBadgeParams(const LLBadge::Params& p) } } +void LLBadgeOwner::reshapeBadge(const LLRect& new_rect) +{ + if (mBadge) + { + mBadge->setShape(new_rect); + } +} + void LLBadgeOwner::setBadgeVisibility(bool visible) { if (mBadge) diff --git a/indra/llui/llbadgeowner.h b/indra/llui/llbadgeowner.h index 01ed95f3a3..4ce208fa0d 100644 --- a/indra/llui/llbadgeowner.h +++ b/indra/llui/llbadgeowner.h @@ -46,6 +46,7 @@ public: bool hasBadgeHolderParent() const { return mHasBadgeHolderParent; }; void setBadgeVisibility(bool visible); void setDrawBadgeAtTop(bool draw_at_top); + void reshapeBadge(const LLRect& new_rect); private: |