From cdef4bdfefb4409cab63c19171d3ee48c304cd3a Mon Sep 17 00:00:00 2001 From: Simon Jackson Date: Mon, 7 Aug 2017 11:53:57 +0100 Subject: [PATCH] Horizontal Scroll Snap "AddChild" method was NOT calling "InitialiseChildObjectsFromScene()", added Resolves #125 --- Scripts/Layout/HorizontalScrollSnap.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Scripts/Layout/HorizontalScrollSnap.cs b/Scripts/Layout/HorizontalScrollSnap.cs index d1dae3c..03aba1c 100644 --- a/Scripts/Layout/HorizontalScrollSnap.cs +++ b/Scripts/Layout/HorizontalScrollSnap.cs @@ -109,6 +109,7 @@ namespace UnityEngine.UI.Extensions { _scroll_rect.horizontalNormalizedPosition = 0; GO.transform.SetParent(_screensContainer, WorldPositionStays); + InitialiseChildObjectsFromScene(); DistributePages(); if (MaskArea) UpdateVisible();