From d81fe0e029a686a08d53f486d31d8a47f306c4c7 Mon Sep 17 00:00:00 2001
From: Richard Marcus <richard.marcus@fau.de>
Date: Fri, 7 Feb 2020 02:46:16 +0100
Subject: [PATCH] fact UI activates with tab, but works only once..

---
 Assets/InventoryStuff/ScrollDetails.cs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Assets/InventoryStuff/ScrollDetails.cs b/Assets/InventoryStuff/ScrollDetails.cs
index 57c6db1d..4b89b79d 100644
--- a/Assets/InventoryStuff/ScrollDetails.cs
+++ b/Assets/InventoryStuff/ScrollDetails.cs
@@ -51,6 +51,8 @@ public void setScroll(Scroll s) {
             obj.GetComponent<RectTransform>().localPosition = GetPosition(i);
             obj.transform.GetChild(1).gameObject.GetComponent<TextMeshProUGUI>().text = s.declarations[i].description;
             obj.transform.SetParent(viewport);
+            //TODO: Remvoe this reaaaaly bad hack
+            obj.transform.localScale = Vector3.one;
             this.ParameterDisplays[i] = obj;
         }
         gameObject.transform.GetChild(1).gameObject.GetComponent<TextMeshProUGUI>().text = s.description;
-- 
GitLab