SL-19583 force reshape inventory panel when changing root in combination view

master
Maxim Nikolenko 2023-04-28 19:51:00 +03:00
parent 4bfcf182d7
commit 80bfc56ff0
1 changed files with 5 additions and 2 deletions

View File

@ -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);
}
}