From 8b689ad8e50de1e8797e1fd8121f33ec61db7473 Mon Sep 17 00:00:00 2001 From: Andreas Date: Thu, 31 Mar 2016 23:08:56 +0200 Subject: [PATCH] children, not descendants... --- ViewController.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ViewController.coffee b/ViewController.coffee index 5cbb870..8a1ca81 100644 --- a/ViewController.coffee +++ b/ViewController.coffee @@ -76,7 +76,7 @@ class module.exports extends Layer # unless user changed .scroll setting, add a scrollComponent if @scroll - descendants = newView.descendants + children = newView.children scrollComponent = new ScrollComponent name: "scrollComponent" width: @width @@ -86,8 +86,8 @@ class module.exports extends Layer scrollComponent.scrollHorizontal = false if newView.height <= @height scrollComponent.scrollVertical = false - for d in descendants - d.parent = scrollComponent.content + for c in children + c.parent = scrollComponent.content newView.scrollComponent = scrollComponent # make it accessible as a property # defaults