仕入れItemViewスクロール初期位置修正
This commit is contained in:
parent
79a71df4f1
commit
4b54b7f0c2
|
|
@ -24,13 +24,14 @@ public class ShopListView : MonoBehaviour
|
||||||
{
|
{
|
||||||
headerView.Tab.Subscribe(tab =>
|
headerView.Tab.Subscribe(tab =>
|
||||||
{
|
{
|
||||||
scrollRect.verticalNormalizedPosition = 1;
|
|
||||||
tabs.ForEach(x =>
|
tabs.ForEach(x =>
|
||||||
{
|
{
|
||||||
x.content.gameObject.SetActive(x.category == tab);
|
x.content.gameObject.SetActive(x.category == tab);
|
||||||
if (x.category == tab)
|
if (x.category == tab)
|
||||||
{
|
{
|
||||||
scrollRect.content = x.content;
|
scrollRect.content = x.content;
|
||||||
|
LayoutRebuilder.ForceRebuildLayoutImmediate(scrollRect.content);
|
||||||
|
scrollRect.verticalNormalizedPosition = 1;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).AddTo(this);
|
}).AddTo(this);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue