This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Vincenzo Petito
Posted Oct 07 - Read on Facebook

Hi all, i'm trying to put a sketch artboard in a scrollComponent to make it scrollable but it isn't working (also the artoboard is kind of centered in the scrollComponent and not aligned at the top)! Here's my code:

mainScreen = new ScrollComponent
width: Framer.Device.screen.width
height: Framer.Device.screen.height
backgroundColor: "ffffff"
scrollHorizontal: false

sketch = Framer.Importer.load("imported/[email protected]")
sketch.parent = mainScreen

Any thougths?


Rohan K

try mainScreen.content
You can also goto snippets > components > scrollList to see an example code

Read the entire post on Facebook