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

What is Framer? Join the Community
Return to index
Shangqing Yuan
Posted Aug 09 - Read on Facebook

Hey guys,
I got this very wired thing when using "FlowComponent".
1. Import sketch file at 2x, and scale it down at 0.5. Everything looks just great in retina.
2. But when I try to use FlowComponent to make transition between different layers, it turns out only 1/4 of the layer can be displayed.
Do you guys know how to fix this? Thanks.

Here is my code snippet:
# Import file "Test" (sizes and positions are scaled 1:2)
sketch = Framer.Importer.load("imported/[email protected]")
Framer.Device.contentScale = 0.5

# Create FlowComponent
flow = new FlowComponent
flow.showNext(sketch.LayerA)

sketch.LayerA.onClick ->
flow.showOverlayBottom(sketch.LayerB)

sketch.LayerB.onClick ->
flow.showPrevious()

1 Comments

Andrew Nalband

Could you attach a project to take a look at?

Read the entire post on Facebook