Created
February 16, 2016 10:45
-
-
Save toxin20/f314fe4bcdc241d112ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sketch = Framer.Importer.load("imported/screens@2x") | |
# custom device | |
Framer.DeviceView.Devices["g3"] = | |
"deviceType": "phone" | |
"screenWidth": 1440 | |
"screenHeight": 2560 | |
"deviceImage": "https://www.dropbox.com/s/2oktp0ba812xo90/g3.png?dl=1" | |
"deviceImageWidth": 1555 | |
"deviceImageHeight": 3121 | |
# Set custom device | |
Framer.Device.deviceType = "g3" | |
#Framer.Device.orientation = 0 | |
# Wrap the content layer within a ScrollComponent | |
scroll = ScrollComponent.wrap(sketch.Content) | |
scroll.scrollHorizontal = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment