From 4b54b7f0c212e2c8b3d44518def9384592417dee Mon Sep 17 00:00:00 2001 From: kimura Date: Fri, 10 Sep 2021 12:02:21 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BB=95=E5=85=A5=E3=82=8CItemView=E3=82=B9?= =?UTF-8?q?=E3=82=AF=E3=83=AD=E3=83=BC=E3=83=AB=E5=88=9D=E6=9C=9F=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopListView.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopListView.cs b/popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopListView.cs index 0156a3d8..3662790f 100644 --- a/popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopListView.cs +++ b/popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopListView.cs @@ -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);