Permalink
Browse files

fix Pagecomponent.wrap

  • Loading branch information...
J.P.P Treub
J.P.P Treub committed Mar 10, 2016
1 parent 35a1e52 commit cd8bd60a6131a150c826ed18700db9fd856689ee
Showing with 5 additions and 1 deletion.
  1. +5 −1 framer/Components/ScrollComponent.coffee
@@ -432,7 +432,11 @@ wrapComponent = (instance, layer, options = {correct:true}) ->
layer.image = null
# Set the original layer as the content layer for the scroll
scroll.setContentLayer(layer)
if instance.constructor.name is "PageComponent"
for l in layer.children
scroll.addPage(l)
else
scroll.setContentLayer(layer)
# https://github.com/motif/Company/issues/208

0 comments on commit cd8bd60

Please sign in to comment.