Permalink
Browse files

scrollComponent

  • Loading branch information...
koenbok committed Nov 30, 2016
1 parent f7330d4 commit 0de5c81f4522b301f827fa6e7f43472214cb8f38
Showing with 4 additions and 2 deletions.
  1. +4 −2 framer/Components/NavComponent.coffee
@@ -51,7 +51,7 @@ class exports.NavComponent extends Layer
@showNext(layer)
else
@_tempScroll = new ScrollComponent
name: "scroll"
name: "scrollComponent"
parent: @
width: @width
height: @height
@@ -81,6 +81,8 @@ class exports.NavComponent extends Layer
@define "previous",
get: -> return @_stack[@_stack.length - 2]?.layer
@define "scrollComponent",
get: -> return @_stack[@_stack.length - 1]?
##############################################################
# Header and footer
@@ -243,7 +245,7 @@ class exports.NavComponent extends Layer
if not scroll
scroll = new ScrollComponent
scroll.name = "scroll"
scroll.name = "scrollComponent"
scroll.backgroundColor = @backgroundColor
layer[NavComponentLayerScrollKey] = scroll
layer.parent = scroll.content

0 comments on commit 0de5c81

Please sign in to comment.