diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-04-28 19:51:00 +0300 |
---|---|---|
committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-04-28 19:51:00 +0300 |
commit | 80bfc56ff070614fee5b353056076ebed90f9039 (patch) | |
tree | 5e51f741512733ad6ebd2dc17d6cf27241a13f67 /indra | |
parent | 4bfcf182d7a961d8ebfe17b453e54cfac26347ce (diff) |
SL-19583 force reshape inventory panel when changing root in combination view
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llpanelmaininventory.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index b9099bbebf..4d6ff63f94 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -2211,6 +2211,9 @@ void LLPanelMainInventory::onCombinationRootChanged(bool gallery_clicked) } mForceShowInvLayout = false; updateTitle(); + + //force update scroll container + mCombinationInventoryPanel->reshape(getChild<LLUICtrl>("combination_view_inventory")->getRect().getWidth(), 1, true); } void LLPanelMainInventory::updateCombinationVisibility() @@ -2250,8 +2253,8 @@ void LLPanelMainInventory::updateCombinationVisibility() } mCombinationScroller->reshape(llmax(inv_rect.getWidth(), galery_rect.getWidth()), inv_rect.getHeight() + galery_rect.getHeight(), true); - mCombinationGalleryPanel->handleReshape(galery_rect, false); - mCombinationInventoryPanel->handleReshape(inv_rect, false); + mCombinationGalleryPanel->setShape(galery_rect, false); + mCombinationInventoryPanel->setShape(inv_rect, false); } } |