It seems like i found a work-around for this problem, but it needs some more testing. Especially i need to find a way to apply it to all text-input boxes without having to define them all. The chat-input should be the most important one though.
Lua Code:
ChatFrame1EditBox:HookScript("OnCursorChanged",function(self)
local kids = { self:GetRegions() };
for _, child in ipairs(kids) do
if child:GetWidth() < 3 then
local point, relativeTo, relativePoint, xOfs, yOfs = child:GetPoint()
child:SetPoint(point, relativeTo, relativePoint, xOfs-1.5, yOfs )
end
end
end)
Result:
edit: I found an even simpler solution:
Lua Code:
ChatFrame1EditBox:HookScript("OnCursorChanged",function(self)
local kids = { self:GetRegions() }
local point, relativeTo, relativePoint, xOfs, yOfs = kids[2]:GetPoint()
kids[2]:SetPoint(point, relativeTo, relativePoint, kids[1]:GetStringWidth()-2.5, yOfs)
end)