SL-12695 FIXED 'New' badges are not shown for some folders after resizing 'Received items' panel
parent
b9f0eb54ce
commit
c81aa53e7b
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -150,6 +150,12 @@ void LLInboxFolderViewFolder::draw()
|
|||
setBadgeVisibility(mFresh);
|
||||
|
||||
LLFolderViewFolder::draw();
|
||||
|
||||
if (mFresh)
|
||||
{
|
||||
reshapeBadge(getRect());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BOOL LLInboxFolderViewFolder::handleMouseDown( S32 x, S32 y, MASK mask )
|
||||
|
|
|
|||
Loading…
Reference in New Issue