仕入れItemViewスクロール初期位置修正

This commit is contained in:
kimura 2021-09-10 12:02:21 +09:00
parent 79a71df4f1
commit 4b54b7f0c2
1 changed files with 2 additions and 1 deletions

View File

@ -24,13 +24,14 @@ public class ShopListView : MonoBehaviour
{
headerView.Tab.Subscribe(tab =>
{
scrollRect.verticalNormalizedPosition = 1;
tabs.ForEach(x =>
{
x.content.gameObject.SetActive(x.category == tab);
if (x.category == tab)
{
scrollRect.content = x.content;
LayoutRebuilder.ForceRebuildLayoutImmediate(scrollRect.content);
scrollRect.verticalNormalizedPosition = 1;
}
});
}).AddTo(this);