Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestedHeight for parent element #7

Open
dandoen opened this issue Jan 28, 2014 · 0 comments
Open

suggestedHeight for parent element #7

dandoen opened this issue Jan 28, 2014 · 0 comments

Comments

@dandoen
Copy link

dandoen commented Jan 28, 2014

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant