simonbs / Runestone

📝 Performant plain text editor for iOS with syntax highlighting, line numbers, invisible characters and much more.
MIT License
2.68k stars 150 forks source link

Get content size before it actually renders #370

Closed 07akioni closed 5 months ago

07akioni commented 5 months ago

Is your feature request related to a problem?

I'm using runestone as a readonly code block and I want to display all its content. However current contentSize is not suitable for getting real content height.

What solution would you like?

Add a property to enable getting real content height.

What alternatives have you considered?

Nope.

Any additional context?

No response

simonbs commented 5 months ago

This has come up before and was briefly discussed in https://github.com/simonbs/Runestone/issues/355. Have you looked into whether the StringSyntaxHighlighter could be the way to go for your use case?

07akioni commented 5 months ago

Thanks, I think it may satisfies my use case. Sorry for didn't notice that.