Not sure what you need help with, Slakah. I see a few different things. I'm guessing that's not actually the code you have, but rather something more like this (minus the line in red):
Code:
local function ShowItemTooltip(self)
GameTooltip:SetOwner(self, "ANCHOR_RIGHT")
if self.id then
local _, link = GetItemInfo(self.id)
GameTooltip:SetHyperlink(link)
GameTooltip:AddLine("Right click to remove this item")
else
GameTooltip:SetText("Drag an item here", nil, nil, nil, nil, true)
end
GameTooltip:Show()
end
If you add the line in red, the borders will adjust to fit your text. Is that the issue you posted about?