k-vyn / framer-ios-kit

MIT License
518 stars 37 forks source link

width not working for text layer #16

Open mamezito-zz opened 8 years ago

mamezito-zz commented 8 years ago

http://share.framerjs.com/28tdwmu91939/

k-vyn commented 8 years ago

Ah yeah, there's a little trick here. The width & height are intended to be set in the constraint. I should do a better job calling that in the documentation. FYI, width & height constraints are in points instead of pixels, so they'll scale up & down based on the device.

So write this instead –

constraints:
     width:120
     align:'center'

Updated version: http://share.framerjs.com/fnggltu6zm8w/