bomberstudios / sketch-framer

A Sketch plugin to easily export your mockups to FramerJS
Other
767 stars 67 forks source link

incorrect positioning of layers on import from sketch #71

Closed jmdern closed 10 years ago

jmdern commented 10 years ago

When I import from sketch from an artboard properly sized for iOS, the layers on import are all shifted to the right a number of pixels.

screen shot 2014-08-20 at 5 17 36 pm

cemre commented 10 years ago

known problem, this happens when you use outside borders or shadows. try flattening them :)

On Aug 20, 2014, at 14:20, jmdern notifications@github.com wrote:

When I import from sketch from an artboard properly sized for iOS, the layers on import are all shifted to the right a number of pixels.

— Reply to this email directly or view it on GitHub.

jmdern commented 10 years ago

hm, no i think this is a different issue. i have no borders or shadows in the document. i do, however, have a masked image with the mask set to the width of the artboard (640px), but i don't think that's causing this problem.

i have noticed something odd with the position coordinates. lets say the artboard width is 640 and x,y position is 0,0. i have a rectangle that's 640x95 and even though it's lined up to the left edge of the artboard, sketch says it's x coordinate is 10. if i change the x coordinate to 0, it pushes that object off the left of the artboard.

is it possible that this discrepancy with the coordinates is what is causing the content to shift on import to framer?

On Wed, Aug 20, 2014 at 5:56 PM, Cemre Güngör notifications@github.com wrote:

known problem, this happens when you use outside borders or shadows. try flattening them :)

On Aug 20, 2014, at 14:20, jmdern notifications@github.com wrote:

When I import from sketch from an artboard properly sized for iOS, the layers on import are all shifted to the right a number of pixels.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/bomberstudios/sketch-framer/issues/71#issuecomment-52850569 .

pieteromvlee commented 10 years ago

We cannot reproduce this issue anymore. Assuming fixed in 3.1