RichText icon indicating copy to clipboard operation
RichText copied to clipboard

suggestedHeight for parent element

Open dandoen opened this issue 11 years ago • 0 comments

I'm adding a RichText element to some TableViewRows. However, I'd like the TableViewRow to have the height of the RichText element. I've tried setting the height parameter for TableViewRow to 'auto' and to Ti.UI.SIZE but both to no avail.

So I'm looking into setting the height parameter of the TableViewRow to something like richtextelement.suggestHeight() before adding the elements to the view/window. Similar to this solution: http://developer.appcelerator.com/question/147190/ios-fix-to-calculate-the-label-height

Does your module already support something that solves this issue? This method seems to be close to what I'm trying to do, but don't know how to use it: https://github.com/pegli/RichText/blob/master/mobile/ios/Classes/ComObscureRichTextRichTextView.m#L61

If not, would the above solution be compatible? If so, can you please look into my earlier submitted issue #6 so I can play around?

Thanks!

dandoen avatar Jan 28 '14 16:01 dandoen