Efficiency
Efficiency copied to clipboard
Line height can't be changed for new text layers
@abynim can you take a look at LineHeight change commands? There is a bug for text layer which wasn't changed in Inspector. For new text layers I can't change line height. I have an error 'paraStyle.setMaximumLineHeight_ is not a function. (In 'paraStyle.setMaximumLineHeight_( lineHeight)', 'paraStyle.setMaximumLineHeight_' is undefined) line: 66 of Text LineHeight−.js'
I read the topic about it in mail list but the approach you have described there doesn't work. I mean this thread http://mail.sketchplugins.com/pipermail/dev_sketchplugins.com/2016-February/003688.html

I get tree for text object before and after changing line height in Inspector and found that there are two different classes for style: NSMutableParagraphStyle and NSParagraphStyle.
I tried to play with first one but it didn't help. Any suggestion?