[TxMt] Re: Completion menu doesn’t take into account the width of the image

Allan Odgaard mailinglist at textmate.org
Sun Aug 7 15:44:28 UTC 2016


On 7 Aug 2016, at 16:11, Allan Odgaard wrote:

> The pop-up is using a table view so we must size the columns manually. 
> I assume (but have not looked) that the current code just has a fixed 
> width for the image column, rather than iterate all rows to find the 
> maximum width.

Just looked at the code and it’s using an image + text cell and does 
actually iterate each row but asks the cell using 
`cellSizeForBounds:NSMakeRect:` which does not account for the image, 
but just using `cellSize` does, so I’ll make that change.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20160807/efd85050/attachment.html>


More information about the textmate mailing list