diff --git a/framer/Importer.coffee b/framer/Importer.coffee index a58f87fe5..b4c3ebc5e 100644 --- a/framer/Importer.coffee +++ b/framer/Importer.coffee @@ -76,6 +76,13 @@ class exports.Importer if info.maskFrame layerInfo.frame = info.maskFrame layerInfo.clip = true + + # Possible fix for images that have a mask in Sketch + # So if a layer without children has a mask, Sketch imports the full image + # That is whay we then take the image frame over the mask frame again + if superLayer?.clip and info.children.length is 0 + layerInfo.frame = info.image.frame + layerInfo.clip = false # Figure out what the super layer should be. If this layer has a contentLayer # (like a scroll view) we attach it to that instead.