just checked the new setcell args would it be possible to "unlink" left & right cell padding so instead of one arg have two args for left padding, one for right padding and one last for maxwidth?
Not without majorly rethinking how it's done. I tried that initially, and with the maxwidth there's really no way to unlink them. Using SetPoint() had no effect, so I stuck with one padding arg. Basically, if you want 5 pixels on either side, you'd set the value to 10. Though, the maxwidth will truncate even that if it's reached/exceeded.
Bah. I dunno, Adirelle added that bit of code. I personally find it unnecessary, since the frames in the old heaps really shouldn't exist at all unless addons using the older versions acquire after loading and don't release - and in that case it would be minor overhead to have a few orphaned frames.
I've pushed a new tagged version out. Here is a highlight of the changes:
* Saner memory caching.
* New tooltip method: AddSeparator() - adds a graphical separator line. More info in the API docs.
* tooltip:SetCell() now has two extra optional arguments - padding and maxwidth. More info in the API.
* If maxwidth is specified via SetCell(), textual lines which are longer than the specified width will wrap to a new line.
* Fixed issue with the bottom of "dangling" letters (g, for example) being clipped.
Apparently the parent of the column and line frames was not being set to nil upon release - at least, that's what I gathered from Elkano's change log. At any rate, I've changed the library to use frameHeap again and all tests on my end come up clean.
I've also added a new tooltip method; AddSeparator(height, r, g, b, a) which allows the lib user to insert a separator line in the tooltip and optionally specify arguments.