summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-06-03 01:07:34 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-06-03 01:07:34 +0300
commitac5c62de965f3e6547cec657bb97c55ebaa40c53 (patch)
tree2c52e320ce8756c57e9e57e8d57409a2a7fa796e /indra
parent42e6c35ace5c54c17460815a19c82486d8b450ca (diff)
SL-19795 Fixed gallery autoscrolling
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llinventorygallery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp
index f4bd98a9f7..f791521e3e 100644
--- a/indra/newview/llinventorygallery.cpp
+++ b/indra/newview/llinventorygallery.cpp
@@ -1008,7 +1008,7 @@ void LLInventoryGallery::scrollToShowItem(const LLUUID& item_id)
const LLRect visible_content_rect = mScrollPanel->getVisibleContentRect();
LLRect item_rect;
- item->localRectToOtherView(item->getLocalRect(), &item_rect, this);
+ item->localRectToOtherView(item->getLocalRect(), &item_rect, mScrollPanel);
LLRect overlap_rect(item_rect);
overlap_rect.intersectWith(visible_content_rect);
@@ -1020,7 +1020,7 @@ void LLInventoryGallery::scrollToShowItem(const LLUUID& item_id)
constraint_rect.setOriginAndSize(0, 0, content_rect.getWidth(), content_rect.getHeight());
LLRect item_doc_rect;
- item->localRectToOtherView(item->getLocalRect(), &item_doc_rect, this);
+ item->localRectToOtherView(item->getLocalRect(), &item_doc_rect, mGalleryPanel);
mScrollPanel->scrollToShowRect( item_doc_rect, constraint_rect );
}