Efficiency icon indicating copy to clipboard operation
Efficiency copied to clipboard

Line height can't be changed for new text layers

Open x-raizor opened this issue 8 years ago • 0 comments

@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

2016-09-23 1 51 50

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?

x-raizor avatar Sep 22 '16 20:09 x-raizor