summaryrefslogtreecommitdiff
path: root/indra/llui/llfolderviewitem.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-04-14 19:02:29 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2025-04-15 00:34:51 +0300
commit207ef20e9e7a42d15e553b6b2c22048bf0ef04d1 (patch)
tree98a0c5018a351da8fa6f468974e0253a0be73ab5 /indra/llui/llfolderviewitem.cpp
parent1f17536cc8b0922ade8c68046ee1665ccec817d9 (diff)
#3897 Fix favorite's stars being hidden in some cases
Diffstat (limited to 'indra/llui/llfolderviewitem.cpp')
-rw-r--r--indra/llui/llfolderviewitem.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/llui/llfolderviewitem.cpp b/indra/llui/llfolderviewitem.cpp
index 87eee6a9ae..3fbfefbdcd 100644
--- a/indra/llui/llfolderviewitem.cpp
+++ b/indra/llui/llfolderviewitem.cpp
@@ -828,8 +828,14 @@ void LLFolderViewItem::drawFavoriteIcon()
constexpr S32 PAD = 3;
constexpr S32 image_size = 14;
+ S32 width = mRoot->getVisibleContentWidth(); // star should stick to scroller's right side
+ if (width <= 0)
+ {
+ width = getRect().getWidth();
+ }
+
gl_draw_scaled_image(
- getRect().getWidth() - image_size - PAD, getRect().getHeight() - mItemHeight + PAD,
+ width - image_size - PAD, getRect().getHeight() - mItemHeight + PAD,
image_size, image_size, favorite_image->getImage(), sFgColor);
}
}